Skip to content

Commit

Permalink
Avoid race between sigchld and the tty master being closed
Browse files Browse the repository at this point in the history
Don't break but continue if the master was closed.
This ensures that we always exit with the code from our child.
  • Loading branch information
mpfz0r committed Sep 20, 2015
1 parent 397d6c8 commit b2fedce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sshdrill.c
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ main(int argc, char *argv[])
if (cc == -1 && errno == EINTR)
continue;
if (cc <= 0)
break;
continue;
do_write(STDOUT_FILENO, obuf, cc);
}
}
Expand Down

0 comments on commit b2fedce

Please sign in to comment.