mirror of
https://github.com/curl/curl.git
synced 2026-08-24 20:23:40 +03:00
make sure the ipv6 http server gets its pid stored in a separate file
This commit is contained in:
parent
1faef62d59
commit
dc28a9c0c1
3 changed files with 19 additions and 10 deletions
|
|
@ -346,7 +346,6 @@ sub runhttpserver {
|
|||
$nameext="-ipv6";
|
||||
}
|
||||
|
||||
|
||||
$pid = checkserver($pidfile);
|
||||
|
||||
# verify if our/any server is running on this port
|
||||
|
|
@ -391,7 +390,7 @@ sub runhttpserver {
|
|||
if($dir) {
|
||||
$flag .= "-d \"$dir\" ";
|
||||
}
|
||||
$cmd="$perl $srcdir/httpserver.pl $flag $port $ipv6 &";
|
||||
$cmd="$perl $srcdir/httpserver.pl -p $pidfile $flag $port $ipv6 &";
|
||||
system($cmd);
|
||||
if($verbose) {
|
||||
print "CMD: $cmd\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue