Re: sem_open() returns ENOSPC
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha1; c=relaxed; d=coriolis-systems.com; h= subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=aug07; bh=JqLq3Tpjk4JlZTFS6CHwlkEeu1k=; b=g+bRg+hzVT8QGAmSEwniJ52jYt7x NIeui0CyXX4eM/kwMBdLrOk67tVd3RykV9Wl8g6IKafEpZ+Z5azD0kYsr16Fel/5 kezyruatoVpbDw5oD10kQfQIBIcmgBetHF6XL/spdnBcGpvLhtgef+N7oXSa6ez9 yhx9EeIVHBWQG5s= 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Alastair Houghton