lix/src/nix-store
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
..
dotgraph.cc * Renamed normalise.cc' -> build.cc', `storeexprs.cc' -> 2005-01-19 16:39:47 +00:00
dotgraph.hh * Renamed normalise.cc' -> build.cc', `storeexprs.cc' -> 2005-01-19 16:39:47 +00:00
help.txt * nix-store, nix-instantiate: added an option `--add-root' to 2005-02-01 12:36:25 +00:00
main.cc * nix-store, nix-instantiate: added an option `--add-root' to 2005-02-01 12:36:25 +00:00
Makefile.am * Do initialise state (the DB etc.) when doing a `make install', 2004-04-21 10:54:46 +00:00