Fix build cancellation
We nowadays ignore SIGINT, so the sshd child process inherited this and ignored SIGINT as well.
This commit is contained in:
parent
3e0ee24b87
commit
4f11cf45dc
|
@ -35,6 +35,8 @@ static void openConnection(Machine::ptr machine, Path tmpDir, int stderrFD, Chil
|
|||
|
||||
child.pid = startProcess([&]() {
|
||||
|
||||
restoreSignals();
|
||||
|
||||
if (dup2(to.readSide.get(), STDIN_FILENO) == -1)
|
||||
throw SysError("cannot dup input pipe to stdin");
|
||||
|
||||
|
|
Loading…
Reference in a new issue