Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Dec 1995 16:08:04 +0100 (MET)
From:      J Wunsch <j@uriah.heep.sax.de>
To:        m_tanaka@pa.yokogawa.co.jp (Mihoko Tanaka)
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: samaphore remains
Message-ID:  <199512271508.QAA03532@uriah.heep.sax.de>
In-Reply-To: <9512061002.AA16768@cabbage.pa.yokogawa.co.jp> from "Mihoko Tanaka" at Dec 6, 95 07:02:51 pm

next in thread | previous in thread | raw e-mail | index | archive | help
As Mihoko Tanaka wrote:
> 
> I found the trouble that if a program using semaphore died
> anbormally, the semaphore which was created remains on kernel.
> I think it should be released by kernel's exit() function.

Nope, it's an IPC facility, hence it should persist across the death
of a process.

> Although one of the UNIX implementation calls semexit() routine from
> exit(), FreeBSD doesn't call semexit() from anywhere.
> Is there any reason for this?

You are right however, semexit() should be called from exit(), in
order to have ``undo vectors'' processed.  Thanks!

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



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