]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mworker: does not close inherited FD
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 15 Nov 2017 18:02:58 +0000 (19:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Nov 2017 18:53:33 +0000 (19:53 +0100)
commit75ea0a06b070c982ef1de986532f535a3179b632
tree1d4c0b724df8151ef2b9db210419774f521c962e
parentfade49d8fbe54ba9643d0fe30534489695bff2fb
BUG/MEDIUM: mworker: does not close inherited FD

At the end of the master initialisation, a call to protocol_unbind_all()
was made, in order to close all the FDs.

Unfortunately, this function closes the inherited FDs (fd@), upon reload
the master wasn't able to reload a configuration with those FDs.

The create_listeners() function now store a flag to specify if the fd
was inherited or not.

Replace the protocol_unbind_all() by  mworker_cleanlisteners() +
deinit_pollers()
include/proto/listener.h
include/types/listener.h
src/cfgparse.c
src/haproxy.c
src/listener.c