]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: don't close stdio anymore
authorWilliam Lallemand <wlallemand@haproxy.com>
Thu, 28 Dec 2017 15:09:36 +0000 (16:09 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Dec 2017 15:33:41 +0000 (16:33 +0100)
commite134041910aa3ea908c3891c3f56e5468ba6ed4e
treec8d07ad387704f3812c5da91c4a06b4cea18ccc6
parent149a81a443a30fd8b23184447cc8a571fcbe0451
MINOR: don't close stdio anymore

Closing the standard IO FDs (0,1,2) can be troublesome, especially in
the case of the master-worker.

Instead of closing those FDs, they are now pointing to /dev/null which
prevents sending debugging messages to the wrong FDs.

This patch could be backported in 1.8.
src/haproxy.c