Hacker News new | past | comments | ask | show | jobs | submit login

You don't check how many times the signal occured - you write your code so that it doesn't matter how many times the signal occured.

For example, when you're handling a SIGCHLD you don't assume exactly one child has exited - you loop around calling waitpid() with WNOHANG and handle every child that's exited.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: