zephyr_mirror: Use SIGTERM to try to kill children.

It's generally best to first try killing with SIGTERM, and if we fail
to kill the child, we'll end up trying to kill them with SIGKILL
anyway when the new zephyr_mirror process starts up,

(imported from commit cfee2dd5f809f6e38d90a09be82719a8660d8377)
This commit is contained in:
Tim Abbott 2012-11-05 12:55:54 -05:00
parent bd60b071e5
commit bfae15c887
1 changed files with 1 additions and 1 deletions

View File

@ -205,7 +205,7 @@ def maybe_restart_mirroring_script():
print
print "%s: zephyr mirroring script has been updated; restarting..." % \
(datetime.datetime.now())
os.kill(child_pid, signal.SIGKILL)
os.kill(child_pid, signal.SIGTERM)
while True:
try:
if bot_name == "extra_mirror.py":