Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: rang@ipk.fhg.de (Christian Rang)
Subject: Re: Problems with semaphores and shared memory segments
Date: 9 Mar 94 15:54:41 GMT	[thread overview]
Message-ID: <rang.763228481@alpha.ipk.fhg.de> (raw)
In-Reply-To: 2l5433$i11@explorer.clark.net

jcp@clark.net (Jody C. Patilla) writes:

>We have observed a problem in using semaphores and shared memory segments,
>in that the semaphores are hanging around after the process using them 
>dies - the system is not cleaning up after itself. It is our understanding
>that the semaphore should only remain as long as there is a process open
>for writing against it. Is this a bug, or are we missing something here?

No, this is not a bug. The System V semantics of message queues, shared
memory and semaphores explicitely state that they remain after the
process exits, normally or abnormally.

Personally , I don't like this behaviour. For instance, I find OS/2's
queue management much easier to use because there, queues are
automagically removed when the owning process dies.




--
Christian Rang, Fraunhofer-Institut IPK, Berlin (rang@ipk.fhg.de)
#include <universe/milkyway/solarsys/earth/germany/fraunhofer/ipk/disclaimer.h>
-------------------------------------------------------------------------------
Practical Electrical Engineering: "Data, I need more light!" - Beverly Crusher


  reply	other threads:[~1994-03-09 15:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1994-03-03 16:43 Problems with semaphores and shared memory segments Jody C. Patilla
1994-03-09 15:54 ` Christian Rang [this message]
1994-03-15 17:07 ` Andre Beck
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox