UNIX signal numbers start at 1.
authorGuus Sliepen <guus@tinc-vpn.org>
Tue, 8 Sep 2009 16:21:52 +0000 (18:21 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Tue, 8 Sep 2009 16:21:52 +0000 (18:21 +0200)
src/process.c

index 28bba02..d07ce7d 100644 (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