Explorar o código

Kill with SIG_TERM

Innokenty Enikeev %!s(int64=9) %!d(string=hai) anos
pai
achega
db53349a9a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      kill-stale.sh

+ 1 - 1
kill-stale.sh

@@ -6,4 +6,4 @@
 DIR="$(dirname "$0")"
 test `find "$DIR/.watchdog" -mmin +2` || exit
 # Kill exising process
-pid=`lsof -iTCP:4016 -sTCP:LISTEN -t` && kill $pid
+pid=`lsof -iTCP:4016 -sTCP:LISTEN -t` && kill -9 $pid