Tag Info

New answers tagged


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 ...

Top 50 recent answers are included