Commit 95bf11c9 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Also remove the pid-file when we stop because CLI on stdin closed.

parent 780eace6
...@@ -68,6 +68,8 @@ struct vsb *vident; ...@@ -68,6 +68,8 @@ struct vsb *vident;
struct VSC_C_mgt static_VSC_C_mgt; struct VSC_C_mgt static_VSC_C_mgt;
struct VSC_C_mgt *VSC_C_mgt; struct VSC_C_mgt *VSC_C_mgt;
static struct vpf_fh *pfh = NULL;
/*--------------------------------------------------------------------*/ /*--------------------------------------------------------------------*/
static void static void
...@@ -286,6 +288,8 @@ cli_stdin_close(void *priv) ...@@ -286,6 +288,8 @@ cli_stdin_close(void *priv)
if (d_flag) { if (d_flag) {
mgt_stop_child(); mgt_stop_child();
mgt_cli_close_all(); mgt_cli_close_all();
if (pfh != NULL)
(void)VPF_Remove(pfh);
exit(0); exit(0);
} }
} }
...@@ -376,7 +380,6 @@ main(int argc, char * const *argv) ...@@ -376,7 +380,6 @@ main(int argc, char * const *argv)
const char *T_arg = "localhost:0"; const char *T_arg = "localhost:0";
char *p, *vcl = NULL; char *p, *vcl = NULL;
struct cli cli[1]; struct cli cli[1];
struct vpf_fh *pfh = NULL;
char *dirname; char *dirname;
char **av; char **av;
unsigned clilim; unsigned clilim;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment