From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,135fd1567ee95fcf X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-03-09 07:54:41 PST Path: gmd.de!gmdtub!sunplt!rang From: rang@ipk.fhg.de (Christian Rang) Newsgroups: comp.unix.osf.osf1 Subject: Re: Problems with semaphores and shared memory segments Message-ID: Date: 9 Mar 94 15:54:41 GMT References: <2l5433$i11@explorer.clark.net> Sender: usenet@sunplt.ipk.fhg.de Organization: IPK-Berlin, Fraunhofer Gesellschaft, Germany 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 ------------------------------------------------------------------------------- Practical Electrical Engineering: "Data, I need more light!" - Beverly Crusher