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

Unified Diff: masters/master-common-rules.mk

Issue 1863083003: Revert of Send a SIGKILL to masters after 10 seconds if they don't exit from SIGTERM (Closed) Base URL: https://chromium.googlesource.com/chromium/tools/build.git@master
Patch Set: Created 4 years, 8 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 | scripts/master/kill_pidfile.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: masters/master-common-rules.mk
diff --git a/masters/master-common-rules.mk b/masters/master-common-rules.mk
index c1d96ba28e456e0ed5c984d6954178fd210167aa..a8b72e654c4b338ef119c8dca7894b33327c6d67 100644
--- a/masters/master-common-rules.mk
+++ b/masters/master-common-rules.mk
@@ -91,7 +91,7 @@
) 2>&1 | tee -a actions.log
endif
- $(SCRIPTS_DIR)/master/kill_pidfile.sh twistd.pid
+ if `test -f twistd.pid`; then kill -TERM -$$(ps h -o pgid= $$(cat twistd.pid) | awk '{print $$1}'); fi;
kill: notify printstep
if `test -f twistd.pid`; then kill -KILL -$$(ps h -o pgid= $$(cat twistd.pid) | awk '{print $$1}'); fi;
« no previous file with comments | « no previous file | scripts/master/kill_pidfile.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698