lix/src/libstore
Eelco Dolstra dcc37c236c * nix-store, nix-instantiate: added an option `--add-root' to
immediately add the result as a permanent GC root.  This is the only
  way to prevent a race with the garbage collector.  For instance, the
  old style

    ln -s $(nix-store -r $(nix-instantiate foo.nix)) \
      /nix/var/nix/gcroots/result

  has two time windows in which the garbage collector can interfere
  (by GC'ing the derivation and the output, respectively).  On the
  other hand,

    nix-store --add-root /nix/var/nix/gcroots/result -r \
      $(nix-instantiate --add-root /nix/var/nix/gcroots/drv \
        foo.nix)

  is safe.

* nix-build: use `--add-root' to prevent GC races.
2005-02-01 12:36:25 +00:00
..
build.cc * Add missing files to dist. 2005-02-01 09:23:38 +00:00
build.hh * Maintain the references/referers relation also for derivations. 2005-01-25 21:28:25 +00:00
db.cc * Allow certain operations to succeed even if we don't have write 2004-10-25 14:38:23 +00:00
db.hh * Allow certain operations to succeed even if we don't have write 2004-10-25 14:38:23 +00:00
derivations-ast.def * Another change to low-level derivations. The last one this year, I 2005-01-20 14:10:19 +00:00
derivations.cc * Maintain the references/referers relation also for derivations. 2005-01-25 21:28:25 +00:00
derivations.hh * Another change to low-level derivations. The last one this year, I 2005-01-20 14:10:19 +00:00
gc.cc * nix-store, nix-instantiate: added an option `--add-root' to 2005-02-01 12:36:25 +00:00
gc.hh * nix-store, nix-instantiate: added an option `--add-root' to 2005-02-01 12:36:25 +00:00
globals.cc * Allow certain operations to succeed even if we don't have write 2004-10-25 14:38:23 +00:00
globals.hh * Allow certain operations to succeed even if we don't have write 2004-10-25 14:38:23 +00:00
Makefile.am * Renamed normalise.cc' -> build.cc', `storeexprs.cc' -> 2005-01-19 16:39:47 +00:00
misc.cc * Maintain the references/referers relation also for derivations. 2005-01-25 21:28:25 +00:00
pathlocks.cc * Don't delete active lock files. 2005-01-31 12:19:53 +00:00
pathlocks.hh * Make lock removal safe by signalling to blocked processes that the 2005-01-27 12:19:25 +00:00
references.cc * Shorten SHA-256 hashes used in store path name generation to 160 2005-01-14 16:04:03 +00:00
references.hh * libnix -> libstore. 2003-11-18 10:55:27 +00:00
store.cc * nix-store, nix-instantiate: added an option `--add-root' to 2005-02-01 12:36:25 +00:00
store.hh * nix-store, nix-instantiate: added an option `--add-root' to 2005-02-01 12:36:25 +00:00
test-builder-1.sh * libnix -> libstore. 2003-11-18 10:55:27 +00:00
test-builder-2.sh * libnix -> libstore. 2003-11-18 10:55:27 +00:00