static int mgt_cli_callback2(const struct vev *e, int what) { int i; (void)what; i = VCLS_Poll(mgt_cls, e->priv, 0); return (i); }
void CLI_Run(void) { int i; add_check = 1; AN(VCLS_AddFd(cls, heritage.cli_in, heritage.cli_out, NULL, NULL)); do { i = VCLS_Poll(cls, -1); } while(i > 0); VSL(SLT_CLI, 0, "EOF on CLI connection, worker stops"); }