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:
parent
ba720fcbae
commit
4a770e8e2d
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user