Tag Info

New answers tagged

1

You say "the parent is waiting", and it is for a few cycles, but then you do "return 0", causing it to exit. If you want to receive the SIGCHLD, you need to ensure your parent doesn't exit before the child does its thing. Easiest way to do this: insert a line before your return 0: sleep(10); which will cause your parent to wait for up to 10 seconds. You ...


3

I don't believe there are any commands that allow you to monitor POSIX message queues specifically. As you mentioned, all of the details are exposed via a pseudo filesystem, usually mounted under /dev/mqueue. Once you've done that, you can then use file management commands like ls, rm, cat, etc. to inspect and manage the queue details.



Top 50 recent answers are included