1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 17:51:15 +02:00

* Remove lock files after building.

This commit is contained in:
Eelco Dolstra 2003-11-21 16:05:19 +00:00
parent 06208d1d86
commit 7a02d95418
3 changed files with 20 additions and 1 deletions

View file

@ -256,6 +256,11 @@ Path normaliseStoreExpr(const Path & _nePath, PathSet pending)
registerSuccessor(txn, nePath, nfPath);
txn.commit();
/* It is now safe to delete the lock files, since all future
lockers will see the successor; they will not create new lock
files with the same names as the old (unlinked) lock files. */
outputLocks.setDeletion(true);
return nfPath;
}