I have a suite of applications that communicate with each other using SysV queues. However, when I stop the application there are sometimes queues left open, which in turn causes problems next time I start the application.
To resolve this I want to delete the queues left open, but to know which queues to delete I would like to be able to list which queues are associated with a specific file. Is this possible to do?
The queue is created using the following (simplified) code:
key_t key; int q_id; key = ftok("/some/file/name", 42); q_id = msgget(key, 0666 | IPC_CREAT);
So by associated with a file a mean the path used in the