"kill -O" doesn't exist, "kill -0" does!

This commit is contained in:
Jérémy Lecour 2019-11-12 14:49:16 +01:00 committed by Jérémy Lecour
parent da40afa99c
commit 832a219f0b
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ pick_server() {
if [ -e "${PIDFILE}" ]; then
pid=$(cat "${PIDFILE}")
# Does process still exist ?
if kill -O ${pid} 2> /dev/null; then
if kill -0 ${pid} 2> /dev/null; then
# Killing the childs of evobackup.
for ppid in $(pgrep -P "${pid}"); do
kill -9 "${ppid}";