Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Unified Diff: scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py

Issue 2440803004: Log when 'cloudtail_utils.py stop' can't find cloudtail PID. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py
diff --git a/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py b/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py
index af8e3e1d11757601ad6a5f8501c979cebddf8142..bfe97d81c9b55bf1b895a97ad565957f9d21e63d 100644
--- a/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py
+++ b/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py
@@ -65,11 +65,14 @@ def wait_termination(pid):
NotDiedError: if cloudtail is running after 10 seconds waiting,
NotDiedError is raised.
"""
+
try:
os.kill(pid, signal.SIGINT)
except OSError as e:
# Already dead?
if e.errno in (errno.ECHILD, errno.EPERM, errno.ESRCH):
+ print('Can\'t send SIGINT to process %d. Already dead? Errno %d.' %
+ (pid, e.errno))
return
raise
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698