IPCRM(1) General
Commands Manual IPCRM(1)
NAME
ipcrm —
remove the specified message queues,
semaphore sets, and shared memory segments
SYNOPSIS
ipcrm |
[-M shmkey]
[-m shmid]
[-Q msgkey]
[-q msqid]
[-S semkey]
[-s semid] ... |
DESCRIPTION
ipcrm removes the specified message
queues, semaphores, and shared memory segments. These System V IPC objects
can be specified by their creation ID or any associated key.
The options are as follows:
-Mshmkey- Mark the shared memory segment associated with key
shmkeyfor removal. This marked segment will be destroyed after the last detach. -mshmid- Mark the shared memory segment associated with ID
shmidfor removal. This marked segment will be destroyed after the last detach. -Qmsgkey- Remove the message queue associated with key
msgkeyfrom the system. -qmsqid- Remove the message queue associated with the ID
msqidfrom the system. -Ssemkey- Remove the semaphore set associated with key
semkeyfrom the system. -ssemid- Removes the semaphore set associated with ID
semidfrom the system.
The identifiers and keys associated with these System V IPC objects can be determined by using ipcs(1).
EXIT STATUS
The ipcrm utility exits 0 on
success, and >0 if an error occurs.
SEE ALSO
STANDARDS
The ipcrm utility is compliant with the
X/Open System Interfaces option of the IEEE Std 1003.1-2008
(“POSIX.1”) specification.
OpenBSD 7.8
September 9, 2015
IPCRM(1)