mirror of
https://github.com/NixOS/nix.git
synced 2025-11-25 19:51:00 +01:00
Use vfork() instead of fork() if available
Hopefully this reduces the chance of hitting ‘unable to fork: Cannot allocate memory’ errors. vfork() is used for everything except starting builders.
This commit is contained in:
parent
48c19c4633
commit
ea89df2b76
6 changed files with 51 additions and 22 deletions
|
|
@ -208,6 +208,8 @@ public:
|
|||
|
||||
void markContentsGood(const Path & path);
|
||||
|
||||
void setSubstituterEnv();
|
||||
|
||||
private:
|
||||
|
||||
Path schemaPath;
|
||||
|
|
@ -238,6 +240,8 @@ private:
|
|||
/* Cache for pathContentsGood(). */
|
||||
std::map<Path, bool> pathContentsGoodCache;
|
||||
|
||||
bool didSetSubstituterEnv;
|
||||
|
||||
int getSchema();
|
||||
|
||||
void openDB(bool create);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue