|
|
|
|
|
by JdeBP
3001 days ago
|
|
It is not the only sane thing to do. kevent() is another way to handle signals. It puts handling them into the program's main event loop, which is done synchronously with normal event-dispatching mechanisms and so does not have worries about asynchronous signal safety, because with kevent() they are just another type of filter. |
|
The nice thing about the write-a-byte-to-the-pipe thing is that it works virtually everywhere.