Alexander Barton : Don't call sigaction() if it is not available on the system
Module: ngircd.git Branch: master Commit: 4a770e8e2deaa90bd99edd8132de09f778158a87 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=4a770e8e2... Author: Alexander Barton <alex@barton.de> Date: Wed Sep 22 14:10:09 2010 +0200 Don't call sigaction() if it is not available on the system --- src/ngircd/sighandlers.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/ngircd/sighandlers.c b/src/ngircd/sighandlers.c index 80eef3e..b8e8013 100644 --- a/src/ngircd/sighandlers.c +++ b/src/ngircd/sighandlers.c @@ -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]);
Teilnehmer (1)
-
alex@arthur.barton.de