mirror of
https://github.com/moparisthebest/curl
synced 2025-01-09 04:58:00 -05:00
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
This commit is contained in:
parent
7aa2d10e0d
commit
2345c1dd66
@ -651,7 +651,9 @@ sub stopserver {
|
|||||||
#
|
#
|
||||||
foreach my $server (@killservers) {
|
foreach my $server (@killservers) {
|
||||||
if($run{$server}) {
|
if($run{$server}) {
|
||||||
$pidlist .= "$run{$server} ";
|
# we must prepend a space since $pidlist may already contain
|
||||||
|
# a pid
|
||||||
|
$pidlist .= " $run{$server}";
|
||||||
$run{$server} = 0;
|
$run{$server} = 0;
|
||||||
}
|
}
|
||||||
$runcert{$server} = 0 if($runcert{$server});
|
$runcert{$server} = 0 if($runcert{$server});
|
||||||
|
Loading…
Reference in New Issue
Block a user