projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e174d37
)
support --fork and pass that on to sws
author
Daniel Stenberg
<daniel@haxx.se>
Mon, 10 Apr 2006 13:09:56 +0000
(13:09 +0000)
committer
Daniel Stenberg
<daniel@haxx.se>
Mon, 10 Apr 2006 13:09:56 +0000
(13:09 +0000)
tests/httpserver.pl
patch
|
blob
|
history
diff --git
a/tests/httpserver.pl
b/tests/httpserver.pl
index
675aed5
..
ae1bcec
100755
(executable)
--- 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");