I concur. If a process's parent dies, that process will NOT be a zombie, no way no how, unless either the system's init(8) process is broken, or there is some kind of bug in the kernel. You do not need to reap your own children before dying, and you never have, not on any flavor of Unix since 1972 or thereabouts.
-- Jim From: busybox [mailto:[email protected]] On Behalf Of Emmanuel Deloget Sent: Wednesday, January 03, 2018 3:04 PM To: Markus Gothe <[email protected]> Cc: busybox <[email protected]> Subject: [**EXTERNAL**] Re: Re: [PATCH] Fix runsvdir so it reaps children and avoid zombi processes when killed. Hello, On Wed, Jan 3, 2018 at 11:04 PM, Markus Gothe <[email protected]<mailto:[email protected]>> wrote: Can you run strace on a process invoked from the inittab? I surely have issues with doing that. This is definitely possible, but thou shall not forget -ff to follow forks (and prepare for an awfull lot of output, so maybe you should redirect that in some log file). As far as killing the processes it doesnt matter which signal you use; processes will become zombified forever without the patch. I, too, don't get how runsvdir children can be zombified if runsvdir is killed. When runsvdir dies, the children are reparented to /bin/init which is, AFAIK, reaping them. I won't disagree with you (you say you have zombies all over the place) but maybe the problem - and the right fix - lies somewhere else. Best regards, -- Emmanuel Deloget
_______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
