Kernel events without kevents
Posted Mar 15, 2007 16:38 UTC (Thu) by pphaneuf
In reply to: Kernel events without kevents
Parent article: Kernel events without kevents
Well, since I don't even look at the value that I read, it doesn't matter much, doesn't it?
Depending on environmental constraints, I either use a pipe per signal, or the pipe is only to "wake up" the select() and I check some volatile bools that the signal handlers set to know which one it was.
Furthermore, since my "messages" are a single byte (I usually use 42 as a value), and that's the granularity of a pipe, they'd still be atomic. That's if I cared about their value, of course.
to post comments)