aboutsummaryrefslogtreecommitdiff
path: root/src/nix/run.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-09-28 17:58:59 +0200
committerEelco Dolstra <edolstra@gmail.com>2017-09-28 17:58:59 +0200
commitf3e0d468218994343d0e595a50304cc122ad1406 (patch)
tree331f8bba68e1e5d38496897820fd4886687ebd0d /src/nix/run.cc
parent5421ad243e261d35bf8cb1000aa389399cf7657f (diff)
nix run: Restore signals
Otherwise Ctrl-C doesn't work.
Diffstat (limited to 'src/nix/run.cc')
-rw-r--r--src/nix/run.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/run.cc b/src/nix/run.cc
index c72ede99c..2f93ca351 100644
--- a/src/nix/run.cc
+++ b/src/nix/run.cc
@@ -130,6 +130,8 @@ struct CmdRun : InstallablesCommand
stopProgressBar();
+ restoreSignals();
+
/* If this is a diverted store (i.e. its "logical" location
(typically /nix/store) differs from its "physical" location
(e.g. /home/eelco/nix/store), then run the command in a