Kernel events without kevents
Kernel events without kevents
Posted Mar 17, 2007 17:19 UTC (Sat) by vmole (guest, #111)In reply to: Kernel events without kevents by giraffedata
Parent article: Kernel events without kevents
How does it do that? I don't think sigaction modifies the signal mask.
I misremembered, partially. The sa_mask member of the structure just blocks signals during delivery of the desired signal, not all the time. (Before sigaction(2), you had to try and call sigprocmask(2) from inside your signal handler to get this affect, which was completely unreliable.) This kind of blocking isn't necessary with signalfd because (duh!) the signals aren't delivered asynchronously.