lkml.org 
[lkml]   [1997]   [Aug]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: Killing clones
    Ingo Molnar writes:
    >
    > On Sun, 10 Aug 1997, Richard Gooch wrote:
    >
    > > > LinuxThreads uses a 'manager thread' (which is not the main thread) that
    > > > can do exactly this kind of cleanup stuff.
    > >
    > > 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.
    >
    > of course if the manager dies that cannot be solved. It should be simple
    > enough and should not die spontaneously ;)

    ??? But waitpid will not wait for the *parent* process, so how can it
    use this to check for the existance of the parent?

    Regards,

    Richard....

    \
     
     \ /
      Last update: 2005-03-22 13:40    [W:0.020 / U:0.736 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site