Skip to content
Snippets Groups Projects
Commit 2345c1dd authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

runtests.pl/stopserver: space separate pids

The stopserver function would append pids to kill and could append them
without separating them with space properly. The result would be a very
large number that by (some implementations of) kill would be interpreted
as a negative number and that process group would be wiped...

Bug: http://curl.haxx.se/bug/view.cgi?id=3188836
Reported by: Greg Pratt
parent 7aa2d10e
No related branches found
No related tags found
No related merge requests found
......@@ -651,7 +651,9 @@ sub stopserver {
#
foreach my $server (@killservers) {
if($run{$server}) {
$pidlist .= "$run{$server} ";
# we must prepend a space since $pidlist may already contain
# a pid
$pidlist .= " $run{$server}";
$run{$server} = 0;
}
$runcert{$server} = 0 if($runcert{$server});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment