4 ms·
> you would need to redesign the process API. Not really, PIDs are unstable, so only the immediate parent of a child can reasonably do anything with a child's
by Joker_vD 1y ago
> you would need to redesign the process API.
Not really, PIDs are unstable, so only the immediate parent of a child can reasonably do anything with a child's PID anyway, PPID is mostly useless; so when a process exits, set PPIDs of all its non-exitted children to 0 or -1, and reap all of its already dead children, recursively. Done!
> Reparenting is needed for standard Unix utilities that want to run in the background.
Well, okay? You don't need any changes in APIs for that.