Messages in this thread | | | Date | Sun, 10 Aug 1997 15:31:48 +0200 (MET DST) | From | Ingo Molnar <> | Subject | Re: Killing clones |
| |
On Sun, 10 Aug 1997, Richard Gooch wrote:
> > > But how does this manager know when the parent has died? Does it > > > periodically wake up and check if its ppid == 1? Yuk. > > > > nope, use waitpid(-1,&status,..). The status then tells you why the child > > exited.
> ??? But waitpid will not wait for the *parent* process, so how can it > use this to check for the existance of the parent?
i mean it waits for processes in the same process group as well. Note that you are really going to reinvent LinuxThreads ... any reason why you have to use clone() directly?
-- mingo
| |