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

Unified Diff: tools/task_kill.py

Issue 306383002: Always kill the editor and eggplant if on linux (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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: tools/task_kill.py
===================================================================
--- tools/task_kill.py (revision 36728)
+++ tools/task_kill.py (working copy)
@@ -27,6 +27,7 @@
'chrome': 'chrome.exe',
'content_shell': 'content_shell.exe',
'dart': 'dart.exe',
+ 'editor': 'DartEditor.exe',
'iexplore': 'iexplore.exe',
'firefox': 'firefox.exe',
'git': 'git.exe',
@@ -36,6 +37,8 @@
'chrome': 'chrome',
'content_shell': 'content_shell',
'dart': 'dart',
+ 'editor': 'DartEditor',
+ 'eggplant': 'Eggplant',
'firefox': 'firefox.exe',
'git': 'git',
'svn': 'svn'
@@ -44,6 +47,7 @@
'chrome': 'Chrome',
'content_shell': 'Content Shell',
'dart': 'dart',
+ 'editor': 'DartEditor',
'firefox': 'firefox',
'safari': 'Safari',
'git': 'git',
@@ -65,6 +69,8 @@
help="Kill all git and svn processes")
parser.add_option("--kill_browsers", default=False,
help="Kill all browser processes")
+ parser.add_option("--kill_editor", default=True,
+ help="Kill all editor processes")
(options, args) = parser.parse_args()
return options
@@ -187,6 +193,12 @@
status = Kill("dart")
return status
+def KillEditor():
+ status = Kill("editor")
+ if os_name == "linux":
+ status += Kill("eggplant")
+ return status
+
def Main():
options = GetOptions()
status = 0
@@ -196,6 +208,8 @@
status += KillVCSystems();
if (options.kill_browsers):
status += KillBrowsers()
+ if (options.kill_editor):
+ status += KillEditor()
return status
if __name__ == '__main__':
« 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