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