Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2002 19:19:06 -0700
From:      Alfred Perlstein <alfred@FreeBSD.org>
To:        Daniel Eischen <eischen@pcnet1.pcnet.com>
Cc:        hackers@FreeBSD.org, deischen@FreeBSD.org, Garrett Wollman <wollman@lcs.mit.edu>
Subject:   Re: sem_init help?
Message-ID:  <20020919021906.GS86737@elvis.mu.org>
In-Reply-To: <Pine.GSO.4.10.10209182206210.3071-100000@pcnet1.pcnet.com>
References:  <20020919015911.GQ86737@elvis.mu.org> <Pine.GSO.4.10.10209182206210.3071-100000@pcnet1.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Daniel Eischen <eischen@pcnet1.pcnet.com> [020918 19:16] wrote:
> 
> Yes, but it doesn't change what the spec says above.  It's
> implying that any process can perform sem_destroy() on it and
> the spec also says for sem_init() that "This semaphore shall
> remain usable until the semaphore is destroyed.".
> 
> So the sem_init()'ing process can exit and leave the destroying
> to one of the other processes that have access to it.
> 
> > Unless I'm missing something here.
> 
> The semaphore remains active until it is destroyed.  If you don't
> want to track its page, can you hook it into ipcrm(1)?

I don't really have a problem with it unless it's not necessary,
I'll see if I can get access to solaris to figure out wth they
do. :)

-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020919021906.GS86737>