]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: mworker: fix validity check for the pipe FDs
authorPiBa-NL <pba_2k3@yahoo.com>
Tue, 28 Nov 2017 22:22:14 +0000 (23:22 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 2 Dec 2017 12:24:47 +0000 (13:24 +0100)
commit4763ffdf0407e1c697da77a10599a2aecf7dcb04
tree3b017d2c24ed13a4d460ba88865843a3c8ffd49e
parent721d8e028606b11d9f57febf3c7a9d16870a3e0a
BUG/MINOR: mworker: fix validity check for the pipe FDs

Check if master-worker pipe getenv succeeded, also allow pipe fd 0 as
valid. On FreeBSD in quiet mode the stdin/stdout/stderr are closed
which lets the mworker_pipe to use fd 0 and fd 1. Additionally exit()
upon failure to create or get the master-worker pipe.

This needs to be backported to 1.8.
src/haproxy.c