[plain]
DESCRIPTION The ipcrm utility shall remove zero or more message queues, semaphore sets, or shared mem- ory segments. The interprocess communication facilities to be removed are specified by the options. Only a user with appropriate privilege shall be allowed to remove an interprocess communi- cation facility that was not created by or owned by the user invoking ipcrm. -q msgid --队列id Remove the message queue identifier msgid from the system and destroy the message queue and data structure associated with it. -m shmid --共享内存id Remove the shared memory identifier shmid from the system. The shared memory segment and data structure associated with it shall be destroyed after the last detach. -s semid --信号量id Remove the semaphore identifier semid from the system and destroy the set of semaphores and data structure associated with it. 比如 ipcrm -m 2359299Linux ipcs确定共享内存使用情况(2)
内容版权声明:除非注明,否则皆为本站原创文章。