diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-12-05T19·34+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2014-12-05T19·34+0100 |
commit | d34d2b2bbf784c0bb420a50905af25e02c6e4989 (patch) | |
tree | 6eb1ba5ea6940a55b475f93618e5511a37f807ff /src/libutil/types.hh | |
parent | d51eed833a7bbd211a1601367e90d91f71025206 (diff) |
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...)
Diffstat (limited to 'src/libutil/types.hh')
-rw-r--r-- | src/libutil/types.hh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libutil/types.hh b/src/libutil/types.hh index 160884ee1ad7..030996a060e2 100644 --- a/src/libutil/types.hh +++ b/src/libutil/types.hh @@ -73,6 +73,7 @@ class SysError : public Error public: int errNo; SysError(const FormatOrString & fs); + SysError(int errNo, const FormatOrString & fs); }; |