You can probably `waitpid(-1, &status, 0); from time to time to reap the
zombie processes or you can put them in a process group; but I couldn't
come up with a satisfying solution, which is why the only way will be to
just hold a handle to the child process.
On Thu, Jul 7, 2022 at 7:08 PM Benedek Tass via Boost <bo...@lists.boost.org>
wrote:
Klemens Morgenstern via Boost <bo...@lists.boost.org> ezt írta (időpont:
2022. júl. 7., Cs, 13:22):
PARENT -->fork()----------------------------------waitpid()--->
\ /
\ signal(SIGCHLD,SIG_IGN) /
CHILD fork()----signal(SIGHUP,SIG_IGN)----exit() # this process
takes the burden of ignoring SIGCHLD from parent
\ setsid()
\
GRANDCHILD execve()------>
Benedek Tass <tass.b...@gmail.com> ezt írta (időpont: 2022. júl. 7., Cs,
13:44):