From 01d07b1e92c298f729a73705907b2987da9a4d0c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 5 Feb 2019 10:49:19 +0100 Subject: Revert "Restore parent mount namespace before executing a child process" This reverts commit a0ef21262f4d5652bfb65cfacaec01d89c475a93. This doesn't work in 'nix run' and nix-shell because setns() fails in multithreaded programs, and Boehm GC mark threads are uncancellable. Fixes #2646. --- src/nix/edit.cc | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/nix/edit.cc') diff --git a/src/nix/edit.cc b/src/nix/edit.cc index d8d5895bd..c9671f76d 100644 --- a/src/nix/edit.cc +++ b/src/nix/edit.cc @@ -3,7 +3,6 @@ #include "eval.hh" #include "attr-path.hh" #include "progress-bar.hh" -#include "affinity.hh" #include @@ -73,10 +72,6 @@ struct CmdEdit : InstallableCommand stopProgressBar(); - restoreAffinity(); - restoreSignals(); - restoreMountNamespace(); - execvp(args.front().c_str(), stringsToCharPtrs(args).data()); throw SysError("cannot run editor '%s'", editor); -- cgit v1.2.3