From owner-freebsd-hackers Wed Sep 18 19:19: 7 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADAAD37B401; Wed, 18 Sep 2002 19:19:06 -0700 (PDT) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7112243E3B; Wed, 18 Sep 2002 19:19:06 -0700 (PDT) (envelope-from bright@elvis.mu.org) Received: by elvis.mu.org (Postfix, from userid 1192) id 420E8AE147; Wed, 18 Sep 2002 19:19:06 -0700 (PDT) Date: Wed, 18 Sep 2002 19:19:06 -0700 From: Alfred Perlstein To: Daniel Eischen Cc: hackers@FreeBSD.org, deischen@FreeBSD.org, Garrett Wollman Subject: Re: sem_init help? Message-ID: <20020919021906.GS86737@elvis.mu.org> References: <20020919015911.GQ86737@elvis.mu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG * Daniel Eischen [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