Path: utzoo!attcan!uunet!mailrus!ncar!tank!gargoyle!chinet!john From: john@chinet.chi.il.us (John Mundt) Newsgroups: comp.unix.wizards Subject: Re: Message queues (System V) Keywords: delete private queues Message-ID: <1990Mar6.144242.596@chinet.chi.il.us> Date: 6 Mar 90 14:42:42 GMT References: <7114@lynx.UUCP> Reply-To: john@chinet.chi.il.us (John Mundt) Distribution: na Organization: Chinet - Chicago Public Access UNIX Lines: 20 In article <7114@lynx.UUCP> m5@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@admctr.chi.il.us *OR* fred@teacha.chi.il.us (312) 998-5007 (Day voice) || -432-8860 (Answer Mach) && -432-5386 Modem