> When the parent process is killed, the child process will be an child
> process of init, not a zombie, and init calls waitpid() when it
> terminates (by SIGTERM, for example). I agree that this should be
> improved, but I do not think removing fallback to fork(2) is a good
> idea if PROCDES
Mario Oshogbo wrote
in <521267c2.60...@freebsd.org>:
os> Thank you for your commit and sorry for not repair this problem earlier.
os>
os> > @@ -274,6 +274,15 @@ main(int argc, char *argv[])
os> > exit(1);
os> > if (!quiet_mode) {
os> > pid_child_receiver = pdfork(&fdp, 0);
Thank you for your commit and sorry for not repair this problem earlier.
> @@ -274,6 +274,15 @@ main(int argc, char *argv[])
> exit(1);
> if (!quiet_mode) {
> pid_child_receiver = pdfork(&fdp, 0);
> + if (pid_child_receiver == -1) {
> +