about summary refs log tree commit diff
path: root/src/libstore/gc.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-09-14T22·30+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-09-14T22·30+0000
commit5c38c863bdb6904f28a929b97e91d283e29aea70 (patch)
tree1a969c9afe7a55077e22002ff8bd8aee9e52fbb6 /src/libstore/gc.hh
parentf00bc4c94ca4122d432ae516f8d1d7b405d5d05e (diff)
* Fix a huge gaping hole in nix-env w.r.t. the garbage collector.
  Nix-env failed to call addPermRoot(), which is necessary to safely
  add a new root.  So if nix-env started after and finished before the
  garbage collector, the user environment (plus all other new stuff)
  it built might be garbage collected, leading to a dangling symlink
  chain in ~/.nix-profile...

* Be more explicit if we block on the GC lock ("waiting for the big
  garbage collector lock...").

* Don't loop trying to create a new generation.  It's not necessary
  anymore since profiles are locked nowadays.

Diffstat (limited to 'src/libstore/gc.hh')
-rw-r--r--src/libstore/gc.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstore/gc.hh b/src/libstore/gc.hh
index 54fc4dec4beb..3f7242884b59 100644
--- a/src/libstore/gc.hh
+++ b/src/libstore/gc.hh
@@ -39,7 +39,7 @@ void removeTempRoots();
 
 /* Register a permanent GC root. */
 Path addPermRoot(const Path & storePath, const Path & gcRoot,
-    bool indirect);
+    bool indirect, bool allowOutsideRootsDir = false);
 
 
 }