]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mworker: don't close stdio several time
authorPiBa-NL <pba_2k3@yahoo.com>
Mon, 25 Dec 2017 20:03:31 +0000 (21:03 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 29 Dec 2017 15:31:10 +0000 (16:31 +0100)
commit149a81a443a30fd8b23184447cc8a571fcbe0451
tree176064d7d06460fb17521cdda541f00b7a2c283d
parentd790143d990859f4d5af2c5a9e9e0aac94baa69e
BUG/MEDIUM: mworker: don't close stdio several time

This patch makes sure that a frontend socket that gets created after
initialization won't be closed when the master gets re-executed.

When used in daemon mode, the master-worker is closing the FDs 0, 1, 2
after the fork of the children.

When the master was reloading, those FDs were assigned again during the
parsing of the configuration (probably for some listeners), and the
workers were closing them thinking it was the stdio.

This patch must be backported to 1.8.
src/haproxy.c