From c358bab809ec2629ab2bb7adc20d18e319f231b1 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 4 Jan 2012 19:28:22 +0100 Subject: 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. --- tests/httpserver.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') 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) { -- cgit v1.2.3