* 19923 exit_group(1) = ?
* 19923 +++ exited with 1 +++
* Waiting for ECHILD works better.
+ * (However, if -o|logger is in use, we can't do that.
+ * Can work around that by double-forking the logger,
+ * but that loses the ability to wait for its completion on exit.
+ * Oh well...)
*/
while (1) {
int pid;
if (interrupted)
return;
+ if (popen_pid != 0 && nprocs == 0)
+ return;
+
if (interactive)
sigprocmask(SIG_SETMASK, &empty_set, NULL);
pid = wait4(-1, &status, __WALL, (cflag ? &ru : NULL));
exit_code = 1;
return;
}
- } /* while (nprocs != 0) */
+ } /* while (1) */
}
int