* nix-worker: clean up the temporary root for the worker processes
in /nix/var/nix/temproots.
This commit is contained in:
parent
94fd46fa1c
commit
f351834f77
3 changed files with 13 additions and 9 deletions
|
@ -70,15 +70,6 @@ static unsigned int getIntArg(const string & opt,
|
|||
}
|
||||
|
||||
|
||||
struct RemoveTempRoots
|
||||
{
|
||||
~RemoveTempRoots()
|
||||
{
|
||||
removeTempRoots();
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
void initDerivationsHelpers();
|
||||
|
||||
|
||||
|
@ -99,6 +90,12 @@ static void closeStore()
|
|||
}
|
||||
|
||||
|
||||
RemoveTempRoots::~RemoveTempRoots()
|
||||
{
|
||||
removeTempRoots();
|
||||
}
|
||||
|
||||
|
||||
/* Initialize and reorder arguments, then call the actual argument
|
||||
processor. */
|
||||
static void initAndRun(int argc, char * * argv)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue