ipcrm - Remove interprocess communication identifier
Synopsis
ipcrm [-m shmid] [-M shmkey]
[-q msgid] [-Q msgkey]
[-s semid] [-S semkey]
Description
The ipcrm utility removes an interprocess communication (IPC)
entry if the caller has the necessary authority to the IPC entry.
The caller can specify an entry either by the key or by the identifier. The caller can
remove multiple entries at once.
Options
- -M shmkey
- Remove the shared memory segment with the specified key.
- -m shmid
- Remove the shared memory segment with the specified id.
- -Q msgkey
- Remove the message queue with the specified key.
- -q msgid
- Remove the message queue with the specified id.
- -S semKey
- Remove the semaphore set with the specified key.
- -s semid
- Remove the semaphore set with the specified id.
Operands
There are no operands.
Exit Status
- 0 on success
- >0 if an error occurs
Related Information
Examples
- Remove a semaphore with key 1283 and a message queue with id 10:
ipcrm -S 1283 -q 10