Message queues (System V)

John Mundt john at chinet.chi.il.us
Wed Mar 7 00:42:42 AEST 1990


In article <7114 at lynx.UUCP> m5 at lynx.uucp (Mike McNally) writes:
>I have recently discovered that message queues with a key of IPC_PRIVATE are
>not implicitly removed when all using tasks exit. 
>  ...
>I realize that it would be "nice" to do a msgctl() to get rid of the thing,
>but it seems a little user-hostile for the kernel to not do this automatically.
>Is any purpose served by keeping the queue around?
>
>(I found this out, BTW, on our Interactive Systems 386 system.)
>

You'll find the same thing on AT&T's 3b2 line using V3.2.  I carefully
remove the queue when a user exits, but when the program was in develop-
ment, and crashed several times, the queue stayed there.  :-(  It would
be nice if the kernel did clean up after a process died.
-- 
---------------------
John Mundt   Teachers' Aide, Inc.  P.O. Box 1666  Highland Park, IL
john at admctr.chi.il.us *OR* fred at teacha.chi.il.us
(312) 998-5007 (Day voice) || -432-8860 (Answer Mach) && -432-5386 Modem  



More information about the Comp.unix.wizards mailing list