7 ms·
Just use signalfd and refactor into an event loop without jumping around.
by emilfihlman 7y ago
Just use signalfd and refactor into an event loop without jumping around.
- nneonneo 7y agoThis does not work - signalfd cannot catch synchronous signals, per the man page: > Limitations > The signalfd mechanism can't be used to receive signals that are synchronously generated, such as the SIGSEGV signal This is because synchronous signals are fired at the thread that caused them, and signalfd read() calls can't be used to read signals fired at other threads.