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
f69b4ae7
Commit
f69b4ae7
authored
Apr 06, 2018
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Report if killing haproxy fails
parent
5545e602
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
vtc_haproxy.c
bin/varnishtest/vtc_haproxy.c
+3
-0
No files found.
bin/varnishtest/vtc_haproxy.c
View file @
f69b4ae7
...
@@ -324,6 +324,9 @@ haproxy_wait(struct haproxy *h)
...
@@ -324,6 +324,9 @@ haproxy_wait(struct haproxy *h)
vtc_log
(
h
->
vl
,
2
,
"Stop HAproxy pid=%ld"
,
(
long
)
h
->
pid
);
vtc_log
(
h
->
vl
,
2
,
"Stop HAproxy pid=%ld"
,
(
long
)
h
->
pid
);
h
->
kill_status
=
kill
(
h
->
pid
,
HAPROXY_SIGNAL
);
h
->
kill_status
=
kill
(
h
->
pid
,
HAPROXY_SIGNAL
);
h
->
kill_errno
=
errno
;
h
->
kill_errno
=
errno
;
if
(
h
->
kill_status
)
vtc_log
(
h
->
vl
,
4
,
"Kill=%d: %s"
,
h
->
kill_status
,
strerror
(
h
->
kill_errno
));
h
->
expect_signal
=
-
HAPROXY_SIGNAL
;
h
->
expect_signal
=
-
HAPROXY_SIGNAL
;
// XXX: loop over kills to ESRCH ?
// XXX: loop over kills to ESRCH ?
}
}
...
...
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