|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
Go to the source code of this file.
Functions | |
| unsigned int | nix::getMaxCPU () |
| void | nix::setStackSize (rlim_t stackSize) |
| void | nix::restoreProcessContext (bool restoreMounts) |
| std::optional< Path > | nix::getSelfExe () |
| unsigned int nix::getMaxCPU | ( | ) |
If cgroups are active, attempt to calculate the number of CPUs available. If cgroups are unavailable or if cpu.max is set to "max", return 0.
| std::optional< Path > nix::getSelfExe | ( | ) |
| void nix::restoreProcessContext | ( | bool | restoreMounts = true | ) |
Restore the original inherited Unix process context (such as signal masks, stack size). This should generally be called after fork for a process intending to simply execve.
See startSignalHandlerThread(), saveSignalMask().
| void nix::setStackSize | ( | rlim_t | stackSize | ) |
Change the stack size.