Re: Mach semaphores [was Re: Darwin-kernel Digest, Vol 2, Issue 53]
Re: Mach semaphores [was Re: Darwin-kernel Digest, Vol 2, Issue 53]
- Subject: Re: Mach semaphores [was Re: Darwin-kernel Digest, Vol 2, Issue 53]
- From: Quinn <email@hidden>
- Date: Wed, 2 Mar 2005 11:53:27 +0000
[For the benefit of your fellow list subscribers, please:
a) create a new email when starting a new thread, rather than
replying to an existing one, and
b) use meaningful subject lines, especially when replying to digest emails.
TIA
Quinn]
At 16:15 -0500 1/3/05, Eric Masson wrote:
I have a character device that holds a mach-style semaphore. Most of
the time it is down so my user side program reading from it will
block. I have an interesting problem in that when I plug and unplug
my ethernet cable my semaphores get released with a code 37. Any
advise on why the mach kernel would be releasing my semaphores on
such an event?
Error 37 is KERN_TERMINATED. The most likely reason for this error
is that the semaphore has been destroyed. The most likely reason for
that is that the task that owns the semaphore has terminated.
I'd need to know more about your architecture before I could
speculate further. Who opened the character device? How did you
just create the semaphore?
S+E
--
Quinn "The Eskimo!" <http://www.apple.com/developer/>
Apple Developer Technical Support * Networking, Communications, Hardware
_______________________________________________
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