lkml.org 
[lkml]   [1997]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.038 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site