1
0
Fork 0
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:
Eelco Dolstra 2014-12-05 20:34:41 +01:00
parent d51eed833a
commit d34d2b2bbf
3 changed files with 39 additions and 10 deletions

View file

@ -73,6 +73,7 @@ class SysError : public Error
public:
int errNo;
SysError(const FormatOrString & fs);
SysError(int errNo, const FormatOrString & fs);
};