Once the timeout is reach, kill -KILL the whole process group, instead of

just the group leader (in case a process catches SIGHUP).
This commit is contained in:
Laurent Rineau 2009-05-04 11:22:42 +00:00
parent 5d97e6dc26
commit 03c0ce5e68
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ wait_for_process()
kill -HUP $pid kill -HUP $pid
sleep 10 sleep 10
# If SIGHUP was not enough, SIGKILL will finish the job, 10s after. # If SIGHUP was not enough, SIGKILL will finish the job, 10s after.
kill -KILL $pid kill -KILL -$pid
fi fi
return 1 return 1
fi fi