a ping has failed before we kill the child.
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1067
d4fa192b-c00b-0410-8231-
f00ffab90ce4
(void)what;
if (child_state != CH_RUNNING)
return (1);
- if (child_pid > 0 && mgt_cli_askchild(NULL, NULL, "ping\n"))
+ if (child_pid > 0 && mgt_cli_askchild(NULL, NULL, "ping\n")) {
+ fprintf(stderr, "Child not responding to ping\n");
kill(child_pid, SIGKILL);
+ }
return (0);
}
return (CLIS_COMMS);
}
- i = cli_readres(cli_i, &u, resp, 3.0);
+ i = cli_readres(cli_i, &u, resp, 5.0);
if (status != NULL)
*status = u;
return (u == CLIS_OK ? 0 : u);