sigint is invalid signal, fix it with SIGINT.

This commit is contained in:
Shuduo Sang 2020-06-01 13:39:57 +08:00
parent ed8e35767c
commit 66052bef9c
2 changed files with 2 additions and 2 deletions

View File

@ -95,7 +95,7 @@ else
if [ -n "$PID" ]; then
if [ "$SIGNAL" = "SIGINT" ]; then
echo killed by signal
kill -sigint $PID
kill -SIGINT $PID
else
kill -9 $PID
fi

View File

@ -100,7 +100,7 @@ else
if [ -n "$PID" ]; then
if [ "$SIGNAL" = "SIGINT" ]; then
echo killed by signal
kill -sigint $PID
kill -SIGINT $PID
else
kill -9 $PID
fi