aboutsummaryrefslogtreecommitdiff
path: root/scripts/find-runtime-roots.pl.in
AgeCommit message (Collapse)Author
2013-12-20Revert "Scan /proc/<pid>/cmdline for GC roots"Eelco Dolstra
This reverts commit 194e3374b89b8b2dec6296923877304bdb5c6ae2. Checking the command line for GC roots means that $ nix-store --delete $path will fail because $path is now a root because it's mentioned on the command line.
2013-12-20Scan /proc/<pid>/cmdline for GC rootsEelco Dolstra
2013-04-26find-runtime-roots.pl: Don't hardcode /nix/storeEelco Dolstra
2013-04-26find-runtime-roots.pl: Search process environments for rootsEelco Dolstra
For instance, this prevents paths from being deleted that are in use by a "nix-build --run-env" session.
2013-04-26find-runtime-roots.pl: Use Nix::Utils::readFileEelco Dolstra
2011-10-10* Set the executable bit on scripts.Eelco Dolstra
2007-03-20* Scan /proc/sys/kernel/modprobe for roots to prevent the kernelEelco Dolstra
modules for the running kernel from being garbage-collected. Idem for /proc/sys/kernel/fbsplash.
2006-09-20* Hide warnings about a missing "lsof" (NIX-54).Eelco Dolstra
2006-07-21* Don't try to do DNS lookups.Eelco Dolstra
2006-07-19* Added a tool to find additional roots for the garbage collector,Eelco Dolstra
such as open files, current directories, mmaped files, etc. This is inherently unportable, but it's easy to adapt this script to other platforms. Currently we call `lsof' and try to read various bits in /proc/NNN. The goal is to prevent the garbage collector from removing store paths that are no longer reachable from a permanent root but that are still in use (for instance, after the user has done "nix-env -e" on a running program).