mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-30 06:22:00 +01:00
MINOR: mworker/cli: replace close() by fd_delete()
Replace the close() call in cli_parse_reload() by a fd_delete() since the FD is one present in the fdtab.
This commit is contained in:
parent
b12d169ea3
commit
479cb3ed3a
@ -649,7 +649,7 @@ static int cli_parse_reload(char **args, char *payload, struct appctx *appctx, v
|
||||
|
||||
/* Send the FD of the current session to the "cli_reload" FD, which won't be polled */
|
||||
if (fd != -1 && send_fd_uxst(proc_self->ipc_fd[0], fd) == 0) {
|
||||
close(fd); /* avoid the leak of the FD after sending it via the socketpair */
|
||||
fd_delete(fd); /* avoid the leak of the FD after sending it via the socketpair */
|
||||
}
|
||||
mworker_reload();
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user