How to cleanup the IPC message-queue

cipcmessage-queue

I am using msgget() function in my IPC based application. How can I clean up the queue filled up with old message queues?

Best Answer

To delete a queue, use the following command:

msgctl(msgQID, IPC_RMID, NULL);

SYSTEM CALL: msgctl()

Related Topic