On Fri, 1 Jun 2001, Shlomi Fish wrote:
> What is your opinion regarding this matter? Do you approve of binding
> signal handlers to signals if it suits your application?
you might be interested in the paper "delivering signals for fun and
profit", presented on bugtraq last week and available at
i think the conclusion evident from the paper is that you should only
use signals if you have to, and NEVER do anything non trivial from the
signal handler. in other words, set a flag and deal with it elsewhere.
[ p.s. the paper whose name this one resembles "smashing the stack for
fun and profit", by aleph1, is also highly recommended if you have't
read it yet ]
linux/reboot.h: #define LINUX_REBOOT_MAGIC1 0xfee1dead