nc exit automatically, not use kill anymore.

This commit is contained in:
neil 2016-01-14 23:19:31 +08:00
parent 9877d46620
commit 6586a86902

6
le.sh
View File

@ -235,11 +235,11 @@ _stopserver() {
pid="$1" pid="$1"
if [ "$pid" ] ; then if [ "$pid" ] ; then
if [ "$DEBUG" ] ; then if [ "$DEBUG" ] ; then
kill -s 9 $pid # kill -s 9 $pid
# killall -s 9 nc # killall -s 9 nc
else else
kill -s 9 $pid > /dev/null # kill -s 9 $pid > /dev/null
wait $pid 2>/dev/null # wait $pid 2>/dev/null
# killall -s 9 nc > /dev/null # killall -s 9 nc > /dev/null
fi fi
fi fi