diff --git a/main.c b/main.c index 593c6d178e7..67ef1b27ec1 100644 --- a/main.c +++ b/main.c @@ -350,12 +350,19 @@ void cleanup(int show_status) static void kill_all_children(int signum) { int r; - if (own_pgid) kill(0, signum); - else if (pt) + if (own_pgid) { + /* check that all processes initialized properly */ + for (r=1; r