4 ms·
They should come in via signalfd unless they're the moral equivalent of a non-maskable interrupt.
by inigyou 2mo ago
They should come in via signalfd unless they're the moral equivalent of a non-maskable interrupt.
- charcircuit 2mo agoThat is also good, but requires apps be rewritten to read from signalfd. With the separate thread approach you can get away without having to rewrite programs.
- inigyou 2mo agoIncorrect. With the separate thread approach you added a lot of new race conditions.
- charcircuit 2mo agoIn practice I don't think there would be that many. You could even pause execution of the thread that would have gotten the signal to make it even safer.
- shawn_w 2mo agoAnd for people who want to use something other than Linux?
- lmz 2mo agoBSD kqueue, Solaris ports.