Re:Tokio and Prctl = Nasty Bug
by ComputerGuru on Monday February 24, 2025 @09:19AM
(#43159819)
Just a nitpick: They don’t get reparented to init regardless of whether you call wait or not, so long as the parent process exists. They’ll be in a zombie state waiting to be reaped via a parent call to wait. Only if the parent dies/exits without reaping will they be reparented to init.
If you want to write a process manager, one of the process manager's responsibilities is waiting on its children.