I have a hard requirement to forcefully destroy a posix message queue with a given name.
I have found out by trial and error that this command wont do
mq_unlink(BROKER_NAME);
The problem with above is that even after unlink, the queue exists as long as other threads/processes reference it.
Is there a way to forcefully destroy the queue, no questions asked?
I will also have file descriptor to the queue.