|
|
|
|
|
by geofft
4047 days ago
|
|
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.) |
|