Skip to content

Commit

Permalink
Fix build cancellation
Browse files Browse the repository at this point in the history
We nowadays ignore SIGINT, so the sshd child process inherited this
and ignored SIGINT as well.
  • Loading branch information
edolstra committed Apr 5, 2017
1 parent 3e0ee24 commit 4f11cf4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hydra-queue-runner/build-remote.cc
Expand Up @@ -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");

Expand Down

1 comment on commit 4f11cf4

@dtzWill
Copy link
Member

@dtzWill dtzWill commented on 4f11cf4 Apr 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh man, so it wasn't just me/my setup! Haha, great thanks! 👍

Please sign in to comment.