diff --git a/src/nix/edit.cc b/src/nix/edit.cc
index dc9775635787479714b0fc3c67299675ab6450c1..378a3739c326e9220212068b2202f405d10cae89 100644
--- a/src/nix/edit.cc
+++ b/src/nix/edit.cc
@@ -45,6 +45,7 @@ struct CmdEdit : InstallableCommand
 
         auto args = editorFor(pos);
 
+        restoreSignals();
         execvp(args.front().c_str(), stringsToCharPtrs(args).data());
 
         std::string command;