mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-15 10:11:03 +00:00
MINOR: signal: really ignore signals configured with no handler
Until now, signals configured with no handler were still enabled and ignored upon signal reception. Until now it was not an issue but with SSL causing many EPIPE all the time, it becomes obvious that signal processing comes with a cost. So set the handler to SIG_IGN when the function is NULL.
This commit is contained in:
parent
f8cfa447c6
commit
c39b0d17f2
@ -144,7 +144,7 @@ struct sig_handler *signal_register_fct(int sig, void (*fct)(struct sig_handler
|
||||
return NULL;
|
||||
|
||||
if (sig)
|
||||
signal(sig, signal_handler);
|
||||
signal(sig, fct ? signal_handler : SIG_IGN);
|
||||
|
||||
if (!fct)
|
||||
return NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user