Merge pull request #3828 from BurNiinTRee/restore-signals-before-edit

nix edit: call restoreSignals() before `execvp`-ing the $EDITOR
This commit is contained in:
Eelco Dolstra 2020-07-18 09:39:11 +02:00 committed by GitHub
commit 0e9fb4a869
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -45,6 +45,7 @@ struct CmdEdit : InstallableCommand
auto args = editorFor(pos); auto args = editorFor(pos);
restoreSignals();
execvp(args.front().c_str(), stringsToCharPtrs(args).data()); execvp(args.front().c_str(), stringsToCharPtrs(args).data());
std::string command; std::string command;