Autoserv: Log SIGTERM Signals.
To help debug what is happening with the suites dying without writing
exit code, lets log when SIGTERM is received by autoserv. If this
message appears missing when the errors occur, the process would not
have received SIGTERM and if it does receive the signal it disproves
the theory the signal is not received.
BUG=chromium:302815
TEST=local setup
Change-Id: Ie6a72da1e1758998825d292f5a0e577eb6e90572
Reviewed-on: https://chromium-review.googlesource.com/173325
Reviewed-by: Alex Miller <milleral@chromium.org>
Commit-Queue: Simran Basi <sbasi@chromium.org>
Tested-by: Simran Basi <sbasi@chromium.org>
diff --git a/server/autoserv b/server/autoserv
index b3b3bb4..9289f90 100755
--- a/server/autoserv
+++ b/server/autoserv
@@ -56,6 +56,7 @@
# Implement SIGTERM handler
def handle_sigterm(signum, frame):
+ logging.debug('Received SIGTERM')
if pid_file_manager:
pid_file_manager.close_file(1, signal.SIGTERM)
os.killpg(os.getpgrp(), signal.SIGKILL)