4 ms·
Nope. There is essentially no way to handle Unix signals correctly. Signals are fundamentally broken. The best way to deal with them that I've found is to turn
by matheusmoreira 3y ago
Nope. There is essentially no way to handle Unix signals correctly. Signals are fundamentally broken.
The best way to deal with them that I've found is to turn them off by masking out every signal. That lets me reliably switch to Linux's signalfd with epoll or io_uring which finally makes it sane. The BSDs seem to have similar mechanisms.