daemon: Prevent .chroot from being GC'ed when using LocalStore::buildDerivation()
Fixes #616.
This commit is contained in:
parent
18b3151613
commit
538684d0c4
1 changed files with 4 additions and 0 deletions
|
@ -882,6 +882,10 @@ DerivationGoal::DerivationGoal(const Path & drvPath, const StringSet & wantedOut
|
||||||
state = &DerivationGoal::init;
|
state = &DerivationGoal::init;
|
||||||
name = (format("building of `%1%'") % drvPath).str();
|
name = (format("building of `%1%'") % drvPath).str();
|
||||||
trace("created");
|
trace("created");
|
||||||
|
|
||||||
|
/* Prevent the .chroot directory from being
|
||||||
|
garbage-collected. (See isActiveTempFile() in gc.cc.) */
|
||||||
|
worker.store.addTempRoot(drvPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Reference in a new issue