OLD | NEW |
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 process. The tool will return non-zero if any |
9 # process was actually found. | 9 # process was actually found. |
10 # | 10 # |
11 | 11 |
12 import optparse | 12 import optparse |
13 import os | 13 import os |
14 import signal | 14 import signal |
15 import subprocess | 15 import subprocess |
16 import sys | 16 import sys |
17 | 17 |
18 import utils | 18 import utils |
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 else: | 240 else: |
241 status += KillDart() | 241 status += KillDart() |
242 if options.kill_vc: | 242 if options.kill_vc: |
243 status += KillVCSystems() | 243 status += KillVCSystems() |
244 if options.kill_browsers: | 244 if options.kill_browsers: |
245 status += KillBrowsers() | 245 status += KillBrowsers() |
246 return status | 246 return status |
247 | 247 |
248 if __name__ == '__main__': | 248 if __name__ == '__main__': |
249 sys.exit(Main()) | 249 sys.exit(Main()) |
OLD | NEW |