summaryrefslogtreecommitdiff
path: root/tests/httpserver.pl
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-04-10 13:09:56 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-04-10 13:09:56 +0000
commit83b8de3d439f308ebbcfee95953439f59236cfc3 (patch)
tree5045ef2fe5a5ecb40c61c63d15e08142d113d8a5 /tests/httpserver.pl
parente174d374f2dc11ad91e29685a6913a9bff195264 (diff)
downloadcurl-83b8de3d439f308ebbcfee95953439f59236cfc3.tar.gz
support --fork and pass that on to sws
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 675aed5cf..ae1bcec28 100755
--- a/tests/httpserver.pl
+++ b/tests/httpserver.pl
@@ -8,6 +8,7 @@ my $dir=".";
my $port = 8999; # just a default
my $ipv6;
my $pid=".http.pid"; # name of the pidfile
+my $fork;
do {
if($ARGV[0] eq "-v") {
$verbose=1;
@@ -20,6 +21,10 @@ do {
$pid=$ARGV[1];
shift @ARGV;
}
+ elsif($ARGV[0] eq "--fork") {
+ $fork = $ARGV[0];
+ shift @ARGV;
+ }
elsif($ARGV[0] =~ /^(\d+)$/) {
$port = $1;
}
@@ -28,4 +33,4 @@ do {
}
} while(shift @ARGV);
-exec("server/sws --pidfile $pid $ipv6$port $dir");
+exec("server/sws --pidfile $pid$fork $ipv6$port $dir");