Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I remember someone telling me that the only thing you should be allowed to do in a signal handler is to set a semaphore (or similar synchronization primitive).

The actual logic is to be done in the main application. That's a similar idea as the signalfd function the article mentions.

Obviously an oversimplification, but I think, a good rule of thumb.



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

Search: