Re: kevents, waitpid() with WNOHANG race
Re: kevents, waitpid() with WNOHANG race
- Subject: Re: kevents, waitpid() with WNOHANG race
- From: Dave Keck <email@hidden>
- Date: Sat, 21 Nov 2009 23:23:28 -0500
For the archives:
After some stress testing, I've found that there is in fact a race
between when kevent() reports that a process exited, and when
waitpid() can successfully reap the process. Therefore, it is not safe
to use the WNOHANG option with waitpid() and friends to reap a child
process, after observing that the child process exited using kevent().
_______________________________________________
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