diff options
author | Marius Halden <marius.h@lden.org> | 2015-10-29 01:17:01 +0100 |
---|---|---|
committer | Marius Halden <marius.h@lden.org> | 2015-10-29 01:17:01 +0100 |
commit | c6c1d612f10151fae3de352322f2c95ca17d4eb0 (patch) | |
tree | d6a52d2572850a7fa9f51519c03c9e73734d7e01 /piper.c | |
parent | 0003b01dbcfbf68119127a2899f3277cd676f2c3 (diff) | |
download | piper-c6c1d612f10151fae3de352322f2c95ca17d4eb0.tar.gz piper-c6c1d612f10151fae3de352322f2c95ca17d4eb0.tar.bz2 piper-c6c1d612f10151fae3de352322f2c95ca17d4eb0.tar.xz |
Fix signal handling broken by last commit
Diffstat (limited to 'piper.c')
-rw-r--r-- | piper.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -265,10 +265,11 @@ main(int argc, char **argv) procs[0]._stderr = fds[1]; procs[1]._stdin = fds[0]; - while (!terminate) { + while (!terminate || have_child()) { pid_t pid; - start_missing_procs(); + if (!terminate) + start_missing_procs(); if (sendsignal != 0) signal_procs(); |