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
37b6567b
Commit
37b6567b
authored
Apr 06, 2021
by
Simon
Committed by
Reza Naghibi
Apr 20, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decrease sleep time when waiting for child to die.
parent
98391cb8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
mgt_child.c
bin/varnishd/mgt/mgt_child.c
+2
-2
No files found.
bin/varnishd/mgt/mgt_child.c
View file @
37b6567b
...
...
@@ -511,11 +511,11 @@ mgt_reap_child(void)
XXXAN
(
vsb
);
/* Wait for child to die */
for
(
i
=
0
;
i
<
mgt_param
.
cli_timeout
;
i
++
)
{
for
(
i
=
0
;
i
<
mgt_param
.
cli_timeout
*
10
;
i
++
)
{
r
=
waitpid
(
child_pid
,
&
status
,
WNOHANG
);
if
(
r
==
child_pid
)
break
;
(
void
)
sleep
(
1
);
(
void
)
usleep
(
100000
);
}
if
(
r
==
0
)
{
VSB_printf
(
vsb
,
"Child (%jd) not dying, killing"
,
(
intmax_t
)
r
);
...
...
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