aboutsummaryrefslogtreecommitdiff
path: root/tests/httpserver.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-12-14 21:52:16 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-12-14 21:52:16 +0000
commitdc28a9c0c19c324a0740669e3cc71e80b07a848e (patch)
tree392cc9aa63eaadf8f455d5f391198690cf4206c1 /tests/httpserver.pl
parent1faef62d597c78ea5601ed94814f4a188ec17a86 (diff)
make sure the ipv6 http server gets its pid stored in a separate file
Diffstat (limited to 'tests/httpserver.pl')
-rwxr-xr-xtests/httpserver.pl7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/httpserver.pl b/tests/httpserver.pl
index bdd21f9a8..675aed5cf 100755
--- a/tests/httpserver.pl
+++ b/tests/httpserver.pl
@@ -7,6 +7,7 @@ my $verbose=0; # set to 1 for debugging
my $dir=".";
my $port = 8999; # just a default
my $ipv6;
+my $pid=".http.pid"; # name of the pidfile
do {
if($ARGV[0] eq "-v") {
$verbose=1;
@@ -15,6 +16,10 @@ do {
$dir=$ARGV[1];
shift @ARGV;
}
+ elsif($ARGV[0] eq "-p") {
+ $pid=$ARGV[1];
+ shift @ARGV;
+ }
elsif($ARGV[0] =~ /^(\d+)$/) {
$port = $1;
}
@@ -23,4 +28,4 @@ do {
}
} while(shift @ARGV);
-exec("server/sws $ipv6$port $dir");
+exec("server/sws --pidfile $pid $ipv6$port $dir");