]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: external-check: don't block/unblock SIGCHLD when manipulating the list
authorWilly Tarreau <w@1wt.eu>
Tue, 21 Jun 2016 15:34:14 +0000 (17:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 21 Jun 2016 16:10:51 +0000 (18:10 +0200)
commit78f8dcb7f07903e22c5452295fe3cf8dd7ae0ea6
tree058eb98f41de82f42bf9da62b67d915bb31df804
parentebc92440594459457005e13c5356ff26e117d8aa
CLEANUP: external-check: don't block/unblock SIGCHLD when manipulating the list

There's no point in blocking/unblocking sigchld when removing entries
from the list since the code is called asynchronously.

Similarly the blocking/unblocking could be removed from the connect_proc_chk()
function but it happens that at high signal rates, fork() takes twice as much
time to execute as it is regularly interrupted by a signal, so in the end this
signal blocking is beneficial there for performance reasons.
src/checks.c