I am writing code to replace TCP sockets on a POSIX message queue. Sometimes a program crashes (still in development) and the created queues are not deleted (they are not executed: mq_close() + mq_unlink() ). This causes problems when you re-run the code.
Is there a way to remove / delete these queues using the command line? I tried using: ipcs -q . This did not list all the queues.
I tried: lsof | grep queue-name lsof | grep queue-name . They really appeared here.
Ideally, I would like to use: ipcrm .
source share