mirror of
https://github.com/NixOS/nix
synced 2025-06-26 07:31:15 +02:00
Use posix_spawn to run the pager
In low memory environments, "nix-env -qa" failed because the fork to run the pager hit the kernel's overcommit limits. Using posix_spawn gets around this. (Actually, you have to use posix_spawn with the undocumented POSIX_SPAWN_USEVFORK flag, otherwise it just uses fork/exec...)
This commit is contained in:
parent
d51eed833a
commit
d34d2b2bbf
3 changed files with 39 additions and 10 deletions
|
@ -73,6 +73,7 @@ class SysError : public Error
|
|||
public:
|
||||
int errNo;
|
||||
SysError(const FormatOrString & fs);
|
||||
SysError(int errNo, const FormatOrString & fs);
|
||||
};
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue