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

Side by Side Diff: tools/task_kill.py

Issue 317423002: Kill java to terminate editor on linux. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # 2 #
3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 # 6 #
7 7
8 # A script to kill hanging processs. The tool will return non-zero if any 8 # A script to kill hanging processs. The tool will return non-zero if any
9 # process was actually found. 9 # process was actually found.
10 # 10 #
(...skipping 20 matching lines...) Expand all
31 'iexplore': 'iexplore.exe', 31 'iexplore': 'iexplore.exe',
32 'firefox': 'firefox.exe', 32 'firefox': 'firefox.exe',
33 'git': 'git.exe', 33 'git': 'git.exe',
34 'svn': 'svn.exe' 34 'svn': 'svn.exe'
35 }, 35 },
36 'linux': { 36 'linux': {
37 'chrome': 'chrome', 37 'chrome': 'chrome',
38 'content_shell': 'content_shell', 38 'content_shell': 'content_shell',
39 'dart': 'dart', 39 'dart': 'dart',
40 'editor': 'DartEditor', 40 'editor': 'DartEditor',
41 'java': 'java',
41 'eggplant': 'Eggplant', 42 'eggplant': 'Eggplant',
42 'firefox': 'firefox.exe', 43 'firefox': 'firefox.exe',
43 'git': 'git', 44 'git': 'git',
44 'svn': 'svn' 45 'svn': 'svn'
45 }, 46 },
46 'macos': { 47 'macos': {
47 'chrome': 'Chrome', 48 'chrome': 'Chrome',
48 'content_shell': 'Content Shell', 49 'content_shell': 'Content Shell',
49 'dart': 'dart', 50 'dart': 'dart',
50 'editor': 'DartEditor', 51 'editor': 'DartEditor',
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 status += Kill('svn') 190 status += Kill('svn')
190 return status 191 return status
191 192
192 def KillDart(): 193 def KillDart():
193 status = Kill("dart") 194 status = Kill("dart")
194 return status 195 return status
195 196
196 def KillEditor(): 197 def KillEditor():
197 status = Kill("editor") 198 status = Kill("editor")
198 if os_name == "linux": 199 if os_name == "linux":
200 status += Kill("java")
ricow1 2014/06/06 19:05:14 if the order here is really important, please add
199 status += Kill("eggplant") 201 status += Kill("eggplant")
200 return status 202 return status
201 203
202 def Main(): 204 def Main():
203 options = GetOptions() 205 options = GetOptions()
204 status = 0 206 status = 0
205 if (options.kill_dart): 207 if (options.kill_dart):
206 status += KillDart(); 208 status += KillDart();
207 if (options.kill_vc): 209 if (options.kill_vc):
208 status += KillVCSystems(); 210 status += KillVCSystems();
209 if (options.kill_browsers): 211 if (options.kill_browsers):
210 status += KillBrowsers() 212 status += KillBrowsers()
211 if (options.kill_editor): 213 if (options.kill_editor):
212 status += KillEditor() 214 status += KillEditor()
213 return status 215 return status
214 216
215 if __name__ == '__main__': 217 if __name__ == '__main__':
216 sys.exit(Main()) 218 sys.exit(Main())
OLDNEW
« 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