Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I cleanup the IPC message-queue?

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

like image 218
AJ. Avatar asked Dec 17 '25 15:12

AJ.


1 Answers

To delete a queue, use the following command:

msgctl(msgQID, IPC_RMID, NULL);

SYSTEM CALL: msgctl()

like image 54
jitter Avatar answered Dec 19 '25 05:12

jitter



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!