mirror of
https://github.com/osmarks/ngircd.git
synced 2025-01-19 12:02:52 +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);
|
sigaction(SIGPIPE, &saction, NULL);
|
||||||
#else
|
#else
|
||||||
for (i=0; i < C_ARRAY_SIZE(signals_catch) ; i++)
|
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);
|
signal(SIGPIPE, SIG_DFL);
|
||||||
#endif
|
#endif
|
||||||
close(signalpipe[1]);
|
close(signalpipe[1]);
|
||||||
|
Loading…
Reference in New Issue
Block a user