commit | ea7371e93484cd55d712abd720f47bc5fcaa9246 | [log] [tgz] |
---|---|---|
author | William Lallemand <wlallemand@haproxy.org> | Mon Jan 31 11:01:24 2022 +0100 |
committer | William Lallemand <wlallemand@haproxy.org> | Mon Jan 31 11:10:34 2022 +0100 |
tree | 37efe1b4f5d7234c93978c7ea82031c06b1b96f9 | |
parent | 21ea8c519816314e88f65199c8f1d9c1a226f8b1 [diff] |
MINOR: mworker: sets used or closed worker FDs to -1 mworker_cli_sockpair_new() is used to create the socketpair CLI listener of the worker. Its FD is referenced in the mworker_proc structure, however, once it's assigned to the listener the reference should be removed so we don't use it accidentally. The same must be done in case of errors if the FDs were already closed.