UNIX signal numbers start at 1.

This commit is contained in:
Guus Sliepen 2009-09-08 18:21:52 +02:00
parent 73d77dd416
commit f52ea0a7eb

View file

@ -587,7 +587,7 @@ void setup_signals(void)
/* Set a default signal handler for every signal, errors will be
ignored. */
for(i = 0; i < NSIG; i++) {
for(i = 1; i < NSIG; i++) {
if(!do_detach)
act.sa_handler = SIG_DFL;
else