You don't have to worry about 2 signals following each other if they are
the same signal: you can clear the volatile flag in the signal handler.
If they are different signals, e.g. SIGCHLD arrives during SIGINT
handler inside select(), then it's more complicated.
The pipe is very simple to get right and at least as fast as a signal
handler. Just make sure you can't ever make the mistake of writing to a
full pipe. Netscape 4.x does this and that's why it freezes from time
to time. It's an easy problem to avoid.
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/