Re: [hackers-il] Use of signal() Considered Harmful
- On Fri, 1 Jun 2001, Shlomi Fish wrote:
> What is your opinion regarding this matter? Do you approve of bindingyou might be interested in the paper "delivering signals for fun and
> signal handlers to signals if it suits your application?
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