[klibc] sighandler_t signal(int signum, sighandler_t handler);

H. Peter Anvin hpa at zytor.com
Sun Feb 22 10:56:32 PST 2004

Jon Smirl wrote:
> Could klibc use ifdef __linux__ or __bsd___ to pick which version of signal? 


Put this in your head: SIGNAL() CONSIDERED HARMFUL.

At this point signal() MEANS NOTHING.  It should be considered on the 
level of puts() -- if you use it, your program is automatically buggy.

Use sigaction().


More information about the klibc mailing list