is there a version of waitpid() that will sit and wait until a child of a
different process has ded/exited?
thanks again
Dave Kennedy
Champaign Underwater Hockey
thanks again
Dave Kennedy
Champaign Underwater Hockey
> On Tue, 13 Mar 2001 15:50:55 -0600, dave michael kennedy
> >is there a version of waitpid() that will sit and wait until a child of a
> >different process has ded/exited?
> No.
ben
> Kaz Kylheku a crit :
> > On Tue, 13 Mar 2001 15:50:55 -0600, dave michael kennedy
> > >is there a version of waitpid() that will sit and wait until a child of a
> > >different process has ded/exited?
> > No.
> maybe you could write your own function that regularly calls stat(2) on
> /proc/<pid> in order to know if the process is still alive. but you
> won't get any exit code like this. this may also be a non portable
> solution.
> ben
Gene
--
Homo Sapiens is a goal, not a description.
> > Kaz Kylheku a crit :
> > > On Tue, 13 Mar 2001 15:50:55 -0600, dave michael kennedy
> > > >is there a version of waitpid() that will sit and wait until a child of a
> > > >different process has ded/exited?
> > > No.
> > maybe you could write your own function that regularly calls stat(2) on
> > /proc/<pid> in order to know if the process is still alive. but you
> > won't get any exit code like this. this may also be a non portable
> > solution.
> > ben
> Why not call kill with a signal of zero? That should be portable.
ben
> On Thu, 15 Mar 2001 09:33:39 +0100, Benoit Mordelet
> >what is it supposed to do ? according to kill(2) man page, it should
> >return EINVAL in errno because 0 isn't a valid signal (the first one,
> >SIGHUP, is 1) and that's all.
> Read that bit of text just above the RETURN VALUE section.
ben
1. EXEC fails. waitpid() No child processes
3. waitpid() for a non parent process
5. smail failed to reap child process: No child processes
6. kernel
7. how to kill a child process that runs other children processes
8. Linux on 7600 with 12" PC card.
9. Getting a child and child's child process-id
10. ??? How do I wait for a non-child process completion?
11. Supervising non-child processes w/wo procfs
12. Can I ptrace(2) a non-child process ?