MINOR: cli: add mworker_accept_wrapper to 'show fd'

In the output of 'show fd', the worker CLI's socketpair was still
handled by an "unknown" function. That can be really confusing during
debug. Fixed it by showing "mworker_accept_wrapper" instead.
This commit is contained in:
William Lallemand 2018-11-20 17:36:51 +01:00 committed by Willy Tarreau
parent e2c78cd3e8
commit db6bdfbf68
2 changed files with 3 additions and 0 deletions

View File

@ -272,6 +272,8 @@ void hap_register_post_deinit(void (*fct)());
void hap_register_per_thread_init(int (*fct)());
void hap_register_per_thread_deinit(void (*fct)());
void mworker_accept_wrapper(int fd);
#endif /* _TYPES_GLOBAL_H */
/*

View File

@ -921,6 +921,7 @@ static int cli_io_handler_show_fd(struct appctx *appctx)
(fdt.iocb == dgram_fd_handler) ? "dgram_fd_handler" :
(fdt.iocb == listener_accept) ? "listener_accept" :
(fdt.iocb == poller_pipe_io_handler) ? "poller_pipe_io_handler" :
(fdt.iocb == mworker_accept_wrapper) ? "mworker_accept_wrapper" :
"unknown");
if (fdt.iocb == conn_fd_handler) {