Alright, Linux Kernel question: Why do we have zombie processes? I get that parents need a return value to wait() on but what can't that just be some state held by the parent task? Does some other API need those (V?)PIDs to stay global?
-
-
the bigger issue is that the zombie design *only* permits the parent (or ptrace parent) to use PIDs in a race-free way; anyone else has to worry about races
-
this is why referring to processes via e.g. inodes in procfs is IMO much nicer than using PIDs, and alternative APIs to e.g. kill() that can use procfs FDs would be nice
- 4 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.