sws and tftpd command line option naming adjustments

This commit is contained in:
Yang Tse
2010-01-08 01:48:54 +00:00
parent 8524c04ca9
commit a114b7b1c0
4 changed files with 86 additions and 19 deletions

View File

@@ -6,7 +6,7 @@
# | (__| |_| | _ <| |___
# \___|\___/|_| \_\_____|
#
# Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
# Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
#
# This software is licensed as described in the file COPYING, which
# you should have received as part of this distribution. The terms
@@ -1167,7 +1167,7 @@ sub runtftpserver {
# start our server:
my $flag=$debugprotocol?"-v ":"";
$flag .= "-s \"$srcdir\" ";
$flag .= "--srcdir \"$srcdir\" ";
if($idnum > 1) {
$flag .="--id $idnum ";
}
@@ -1175,7 +1175,7 @@ sub runtftpserver {
$flag .="--ipv6 ";
}
$cmd="./server/tftpd --pidfile $pidfile $flag $port";
$cmd="./server/tftpd --pidfile $pidfile $flag --port $port";
my ($tftppid, $pid2) = startnew($cmd, $pidfile, 15, 0);
if($tftppid <= 0 || !kill(0, $tftppid)) {