mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-02-26 15:40:32 +00:00
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:
parent
e2c78cd3e8
commit
db6bdfbf68
@ -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 */
|
||||
|
||||
/*
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user