commit 4a770e8e2deaa90bd99edd8132de09f778158a87 from: Alexander Barton date: Wed Sep 22 12:10:09 2010 UTC Don't call sigaction() if it is not available on the system commit - ba720fcbaeaacee700d7d23936cf481e6fcb83b1 commit + 4a770e8e2deaa90bd99edd8132de09f778158a87 blob - 80eef3e603d3a382f2e31bf8511ce4433c24c218 blob + b8e8013d31c2671143babc96724912d40ab9a769 --- src/ngircd/sighandlers.c +++ 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]);