aboutsummaryrefslogtreecommitdiff
path: root/tests/httpserver.pl
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2012-01-04 19:28:22 +0100
committerYang Tse <yangsita@gmail.com>2012-01-04 19:28:22 +0100
commitc358bab809ec2629ab2bb7adc20d18e319f231b1 (patch)
tree5b5417bfcfb61b820403ad9479d3de2265ad7580 /tests/httpserver.pl
parent4bc6c1a026ea6890cdddd0e26926d545b44950c6 (diff)
httpserver.pl: reorder sws command line options
make 'pidfile' and 'logfile' options appear first on command line in order to ensure that processing of other options which write to logfile do this to intended file and not the default one.
Diffstat (limited to 'tests/httpserver.pl')
-rwxr-xr-xtests/httpserver.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/httpserver.pl b/tests/httpserver.pl
index 693c67f8f..66e273139 100755
--- a/tests/httpserver.pl
+++ b/tests/httpserver.pl
@@ -117,10 +117,10 @@ if(!$logfile) {
$logfile = server_logfilename($logdir, $proto, $ipvnum, $idnum);
}
+$flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
$flags .= "--gopher " if($gopher);
$flags .= "--fork " if(defined($fork));
$flags .= "--connect $connect " if($connect);
-$flags .= "--pidfile \"$pidfile\" --logfile \"$logfile\" ";
$flags .= "--ipv$ipvnum --port $port --srcdir \"$srcdir\"";
if($verbose) {