* nix-worker: clean up the temporary root for the worker processes

in /nix/var/nix/temproots.
This commit is contained in:
Eelco Dolstra 2008-06-14 16:03:02 +00:00
parent 94fd46fa1c
commit f351834f77
3 changed files with 13 additions and 9 deletions

View file

@ -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)