4 ms·
In typical server applications you can use signalfd to handle signals like receiving data from a client instead of polling. I think on older versions of Linux y
by CodesInChaos 3y ago
In typical server applications you can use signalfd to handle signals like receiving data from a client instead of polling. I think on older versions of Linux you could use a trick where you write a single byte to a pipe in the signal handler to achieve a similar effect.
https://man7.org/linux/man-pages/man2/signalfd.2.html https://man7.org/linux/man-pages/man2/signalfd.2.html