Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
95bf11c9
Commit
95bf11c9
authored
Mar 11, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also remove the pid-file when we stop because CLI on stdin closed.
parent
780eace6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
mgt_main.c
bin/varnishd/mgt/mgt_main.c
+4
-1
No files found.
bin/varnishd/mgt/mgt_main.c
View file @
95bf11c9
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment