How can I list the POSIX named semaphores which belong to a specific process on Mac OS X?
I know the ipcs -s command but it seems to list the System V semaphores, which I guess is different from the POSIX one since I don't recognize my own named semaphores.
I use the sem_open / sem_close / sem_wait functions.
Is there any way to list the "handles" belong to a specific process, something like the Process Explorer on the Windows platform?
You can do lsof -p <pid> | grep PSXSEM. lsof may be more reliable when run privileged, you may wish to use sudo lsof ....
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With