Re: sem_open() returns ENOSPC
Re: sem_open() returns ENOSPC
- Subject: Re: sem_open() returns ENOSPC
- From: Alastair Houghton <email@hidden>
- Date: Wed, 14 Jul 2010 23:51:42 +0100
On 14 Jul 2010, at 23:42, Norm Green wrote:
> As I said in my post, the process is in start-up when I get the error, so I'm confident I don't have a leak at this point. Do I need to call sem_close() even if the process terminates?
You won't need to call sem_close(), but if you're generating the names for your semaphores algorithmically and you might generate many different names, you *will* need to call sem_unlink(). Semaphores are shared between processes, and once created they continue to exist (with the same name) until they're explicitly deleted with sem_unlink().
Kind regards,
Alastair.
--
http://alastairs-place.net
_______________________________________________
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