Re:Signalfd is useless
by geofft on Tuesday May 19, 2015 @12:32PM
(#9571301)
Sure, but that doesn't solve the EINTR problem. If you accept signal-handler interruptions on threads where you actually do work, then you risk interrupting system calls on those threads, and even SA_RESTART isn't guaranteed to work all of the time. That's what a separate thread (or signalfd) wins you.
(But yes, setting it non-blocking is correct.)