]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: signals: ha_sigmask macro for multithreading
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 7 Jun 2018 09:23:40 +0000 (11:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Jun 2018 16:24:53 +0000 (18:24 +0200)
commit6e1796e85d5351535416018112fc19ccacc7fc5e
treef156d4c5beca9e55847d7489706b6cd2ae522017
parent933642c6ef7c3015222cba84c20f13a1ca0eafd6
BUG/MINOR: signals: ha_sigmask macro for multithreading

The behavior of sigprocmask in an multithreaded environment is
undefined.

The new macro ha_sigmask() calls either pthreads_sigmask() or
sigprocmask() if haproxy was built with thread support or not.

This should be backported to 1.8.
include/common/hathreads.h
src/checks.c
src/haproxy.c
src/signal.c