Re: Utilities for listing/removing POSIX IPC objects
From: Michael Kerrisk (michael.kerrisk.at.gmx.net_at_nospam.com)
Date: Thu, 10 Nov 2005 09:15:13 +0100
On 9 Nov 2005 16:23:24 -0800, in comp.os.linux.development.system you
>I hope this is the appropriate group to post this question. If I'm
>wrong, please accept my apologies and correct me.
>Are there standard utilities for listing/removing POSIX IPC objects,
>equivalent to ipcs/ipcrm for SysV IPC ?
No, unfortunately, there are not. On many Unix implementations
(including Linux), POSIX IPC objects are implemented in some sort of
virtual file system, and you can thus just use ls(1) and rm(1).
However, the precise location of these virtual file systems varies
across implementations. (SUSv3 does not help here: it doesn't specify
how to list/remove POSIX IPC objects from the command line, not
specify where they should be located.)
PS On Linux, POSIX shared memory and semaphore objects are typically
under /dev/shm. For message queues you need to mount the file system
using something like:
$ mkdir /dev/mqueue
$ mount -t mqueue none /dev/mqueue