kill nc process

This commit is contained in:
neil committed 2016-04-12 23:43:24 +08:00
1 parent 6fc1447fa6
commit dca09dedac
1 file changed
+7 -2
+7 -2
View File
@@ -658,11 +658,16 @@ _stopserver(){
return
fi
if [[ "$(ps | grep "$pid" | grep "nc")" ]] ; then
_debug "Found nc process, kill it."
if [[ "$(ps | grep "$pid")" ]] ; then
_debug "Found proc process, kill it."
kill -s 9 $pid > /dev/null 2>&1
fi
for ncid in $(ps | grep nc | cut -d " " -f 1) ; do
_debug "kill $ncid"
kill -s 9 $ncid > /dev/null 2>&1
done
_get "http://localhost:$Le_HTTPPort" >/dev/null 2>$1
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.