I have a message queue id, i need to determine which processes are reading from and writing to that queue. Is there a possible option that can be used with 'ipcs'?
ipcs -q|grep qid
this doesn't provide those details. Thanks
You can only retrieve the last PID that called msgsnd()
and the last PID that called msgrcv()
for the specified System V message queue.
You can use:
ipcs -q -p
It will output:
------ Message Queues PIDs --------
msqid owner lspid lrpid
Where:
lspid
- PID of last msgsnd()
lrpid
- PID of last msgrcv()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.