]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Don't call sigaction() if it is not available on the system
authorAlexander Barton <alex@barton.de>
Wed, 22 Sep 2010 12:10:09 +0000 (14:10 +0200)
committerAlexander Barton <alex@barton.de>
Wed, 22 Sep 2010 12:10:09 +0000 (14:10 +0200)
src/ngircd/sighandlers.c

index 80eef3e603d3a382f2e31bf8511ce4433c24c218..b8e8013d31c2671143babc96724912d40ab9a769 100644 (file)
@@ -326,7 +326,7 @@ Signals_Exit(void)
        sigaction(SIGPIPE, &saction, NULL);
 #else
        for (i=0; i < C_ARRAY_SIZE(signals_catch) ; i++)
-               sigaction(signals_catch[i], &saction, NULL);
+               signal(signals_catch[i], SIG_DFL);
        signal(SIGPIPE, SIG_DFL);
 #endif
        close(signalpipe[1]);