[comp.unix.questions] Messages in SYS V

tom@cci632.UUCP (Thomas Bullinger) (12/22/89)

Hello all, and thanks for your attention!
I'm trying to understand the messaging tools in System V UNIX, and I've
written a program to execise these things. However, I seem to have a 
problem allocating message queues after debugging for awhile. Here's what
happens:

    I start my program, and messages begin to fly all over,
    Everything works fine, I exit normally, no problem.
    Now if I start my program, allow messages to start passing
    out and about, and then crash my program, I think it leaves
    the message queue still assigned to my program. After doing this
    a few times, I seem to run out of queues, and my program hangs
    while trying to allocate a new queue. This hanging problem 
    persists until the machine is re-booted. 

Obviously, I can't go around booting a machine with tons of users, I
wouldn't last too long! :-) So my question is (finally):

    Is there any way to find out what queues are assigned to me or
    my programs, and how can I clean up queues left over from
    a premature program exit?

Thanks again for sticking with me this far, I hope someone can help!!

   tom..

[]
[]
[]
[]

cpcahil@virtech.uucp (Conor P. Cahill) (12/22/89)

In article <32780@cci632.UUCP>, tom@cci632.UUCP (Thomas Bullinger) writes:
> 
>     Is there any way to find out what queues are assigned to me or
>     my programs, and how can I clean up queues left over from
>     a premature program exit?

Use ipcs to display the IPCs currently being used by your system.
Use ipcrm to remove the IPCs that you no longer need.

See the manual pages for correct syntax.


-- 
+-----------------------------------------------------------------------+
| Conor P. Cahill     uunet!virtech!cpcahil      	703-430-9247	!
| Virtual Technologies Inc.,    P. O. Box 876,   Sterling, VA 22170     |
+-----------------------------------------------------------------------+