Remix.run Logo
inigyou a day ago

They should come in via signalfd unless they're the moral equivalent of a non-maskable interrupt.

shawn_w a day ago | parent | next [-]

And for people who want to use something other than Linux?

lmz 18 hours ago | parent [-]

BSD kqueue, Solaris ports.

charcircuit a day ago | parent | prev [-]

That 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 12 hours ago | parent [-]

Incorrect. With the separate thread approach you added a lot of new race conditions.

charcircuit 5 hours ago | parent [-]

In 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.