Commit 6586a869 authored by neil's avatar neil
Browse files

nc exit automatically, not use kill anymore.

parent 9877d466
...@@ -235,11 +235,11 @@ _stopserver() { ...@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment