mirror of
https://github.com/NixOS/nix.git
synced 2024-11-27 09:12:40 +00:00
Merge pull request #3828 from BurNiinTRee/restore-signals-before-edit
nix edit: call restoreSignals() before `execvp`-ing the $EDITOR
This commit is contained in:
commit
0e9fb4a869
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user