Re: waitid() function replacement
Re: waitid() function replacement
- Subject: Re: waitid() function replacement
- From: Jim Magee <email@hidden>
- Date: Thu, 13 Apr 2006 21:15:11 -0400
On Apr 6, 2006, at 1:45 PM, Kevin Harris wrote:
To further clarify, what I need to be able to do is find out if the
processes my program spawns has terminated (without cleaning them
up). After I know the process is done, I need to signal the rest
of the process group to clear out any processes it may have spawned
(that haven't changed to a new process group). I can't use waitpid
() to find out if the process has quit and then signal the process
group.
[what I think you omitted]... because once you do the the waitpid()
to detect the process is gone, the process group tied to that pid is
[potentially] gone and, even worse, potentially recycled. Is that
your concern?
If so, you can use kevent(2) to get notified of the process
termination, send your process group signal, and then reap the child.
--Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden