about summary refs log tree commit diff
path: root/src/nix-worker
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2012-03-13T16·07+0100
committerEelco Dolstra <e.dolstra@tudelft.nl>2012-03-13T16·07+0100
commitbd50c01972718167cf86d20dcd9c928b4c3cfbd8 (patch)
treef87b9dc31dc188d8f56e08ea0abf26a3ac7258e8 /src/nix-worker
parentb461721f17d7104c7ef08a0840d80685b9ae853e (diff)
Ensure that Perl processes delete their entry in the temproots directory
By moving the destructor object to libstore.so, it's also run when
download-using-manifests and nix-prefetch-url exit.  This prevents
them from cluttering /nix/var/nix/temproots with stale files.
Diffstat (limited to 'src/nix-worker')
-rw-r--r--src/nix-worker/nix-worker.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc
index 7ca54dee99be..f5201ab6a561 100644
--- a/src/nix-worker/nix-worker.cc
+++ b/src/nix-worker/nix-worker.cc
@@ -584,8 +584,6 @@ static void performOp(unsigned int clientVersion,
 
 static void processConnection()
 {
-    RemoveTempRoots removeTempRoots __attribute__((unused));
-
     canSendStderr = false;
     myPid = getpid();    
     writeToStderr = tunnelStderr;