1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-12 09:50:29 +00:00

Don't call sigaction() if it is not available on the system

This commit is contained in:
Alexander Barton 2010-09-22 14:10:09 +02:00
parent ba720fcbae
commit 4a770e8e2d

View 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]);