On Mon, Jan 8, 2018 at 7:53 PM, Laurent Bercot <[email protected]> wrote: >> How about this: > > IIUC, this changes init's behaviour to only sleep after it has just > started a direct child, so as long as the /etc/inittab processes are > stable, it will always reap distant orphans instantly; but it will > still wait for 1 second before reaping a batch of processes that died > at the same time it spawned a getty or something. > > Am I correct in my understanding?
Yes. > If I am: this reduces the number of cases where the window is hit, > so it will certainly help; zombies will only be observable in some > corner cases. Zombies will _always_ be observable, even if you try to reap immediately. There is no guarantee that the process sleeping in wait() will be instantly given a slice of CPU as soon as a child is dead, to reap it. Therefore, other processes may see it as a zombie. _______________________________________________ busybox mailing list [email protected] http://lists.busybox.net/mailman/listinfo/busybox
