Skip to content

Commit

Permalink
Merge pull request #3828 from BurNiinTRee/restore-signals-before-edit
Browse files Browse the repository at this point in the history
nix edit: call restoreSignals() before `execvp`-ing the $EDITOR
  • Loading branch information
edolstra authored Jul 18, 2020
2 parents 3f01fa1 + bc73590 commit 0e9fb4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nix/edit.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ struct CmdEdit : InstallableCommand

auto args = editorFor(pos);

restoreSignals();
execvp(args.front().c_str(), stringsToCharPtrs(args).data());

std::string command;
Expand Down

0 comments on commit 0e9fb4a

Please sign in to comment.