From: Yang Tse Date: Wed, 4 Jan 2012 18:28:22 +0000 (+0100) Subject: httpserver.pl: reorder sws command line options X-Git-Tag: curl-7_24_0~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c358bab809ec2629ab2bb7adc20d18e319f231b1;p=thirdparty%2Fcurl.git 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. --- diff --git a/tests/httpserver.pl b/tests/httpserver.pl index 693c67f8fb..66e2731399 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) {