Re:All about Linux signals - Linux Programming Blog
by emmelaich on Monday April 02, 2012 @10:42PM
(#3791210)
I believe this is referred to as the 'self pipe' trick.
Dan Bernstein says he came up with it in 1990.
Your main loop can then notice that the other end of the pipe is readable (the main loop is normally watching file descriptors for activity anyway).