Fix build cancellation

We nowadays ignore SIGINT, so the sshd child process inherited this
and ignored SIGINT as well.
This commit is contained in:
Eelco Dolstra 2017-04-05 11:01:57 +02:00
parent 3e0ee24b87
commit 4f11cf45dc
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -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");