Re: P_WEXIT
Re: P_WEXIT
- Subject: Re: P_WEXIT
- From: AgentM <email@hidden>
- Date: Tue, 15 Aug 2006 10:38:58 -0400
On Aug 15, 2006, at 10:20 , Joseph Oreste Bruni wrote:
Hi Terry,
Thank you very much for the explanation. I thought that I had
carefully "joined" all threads, but there might be one that I've
missed. I'll go over everything again.
The way I'm backing out of blocking calls that are not cancelation
points is to have another thread close() the socket out from under
the blocked thread. This results in an EINVALID error which I use
to indicate that the listener thread needs to terminate.
Is it possible you are opening additional file descriptors between
the time you close the socket and the time the thread decides to
clean up? In that case, because file descriptors can be recycled, you
would not only have a race condition but threads that are accessing
foreign resources.
Also, in general, it's more trouble than it's worth to re-join threads.
-M
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
References: | |
| >P_WEXIT (From: Joseph Oreste Bruni <email@hidden>) |
| >Re: P_WEXIT (From: Terry Lambert <email@hidden>) |
| >Re: P_WEXIT (From: Joseph Oreste Bruni <email@hidden>) |