]> git.kaiwu.me - haproxy.git/commit
[BUG] init: unconditionally catch SIGPIPE
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Mar 2010 17:02:46 +0000 (18:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 17 Mar 2010 17:02:46 +0000 (18:02 +0100)
commite437c44483028cc4a06bb99691a717196b5c037b
treeac566ea9cd50eb2fda8b4502657ef105a39e90b4
parentbf3f1de5b58aa77c2a3da4e143d5a7b2f1056b53
[BUG] init: unconditionally catch SIGPIPE

Apparently some systems define MSG_NOSIGNAL but do not necessarily
check it (or maybe binaries are built somewhere and used on older
versions). There were reports of very recent FreeBSD setups causing
SIGPIPEs, while older ones catch the signal. Recent FreeBSD manpages
indeed define MSG_NOSIGNAL.

So let's now unconditionnaly catch the signal. It's useless not to do
it for the rare cases where it's not needed (linux 2.4 and below).
src/haproxy.c