ipcrm

NAME

ipcrm - remove an interprocess communication (IPC) identifier (message queue, semaphore set, or shared memory segment)

SYNOPSIS

ipcrm [-m shmid | -M shmkey | -q msgid | -Q msgkey |
	-s semid | -S semkey] ...

DESCRIPTION

The ipcrm(1) utility removes message queues, semaphore sets, and shared memory segments from the system. The options specify which interprocess communication object is to be removed. Generally, a lowercase option takes an identifier as an argument and the uppercase option takes a key as an argument. The uppercase option removes the object created using the specified key.

OPTIONS

-m shmid
Removes the shared memory identifier shmid; after the last detach, the associated shared memory segment and associated data structure are destroyed.
-M shmkey
Removes the shared memory identifier that was created using shmkey; after the last detach, the associated shared memory segment and associated data structure are destroyed.
-q msgid
Removes the message queue identifier msgid and destroys its associated message queue and data structure.
-Q msgkey
Removes the message queue identifier that was created using msgkey and destroys its associated message queue and data structure.
-s semid
Removes the semaphore identifier semid and destroys the associated set of semaphores and data structure.
-S semkey
Removes the semaphore identifier that was created using semkey and destroys the associated set of semaphores and data structure.

DIAGNOSTICS

The ipcrm(1) utility exits with status 0 for success, and >0 if an error occurred.

SEE ALSO

ipcs(1)

msgctl(2)

semctl(2)

shmctl(2)