From bd50c01972718167cf86d20dcd9c928b4c3cfbd8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 13 Mar 2012 17:07:49 +0100 Subject: 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. --- src/nix-worker/nix-worker.cc | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/nix-worker') diff --git a/src/nix-worker/nix-worker.cc b/src/nix-worker/nix-worker.cc index 7ca54dee9..f5201ab6a 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; -- cgit v1.2.3