| OLD | NEW |
| 1 # Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2008-2009 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """This is the Mac implementation of the layout_package.platform_utils | 5 """This is the Mac implementation of the layout_package.platform_utils |
| 6 package. This file should only be imported by that package.""" | 6 package. This file should only be imported by that package.""" |
| 7 | 7 |
| 8 import os | 8 import os |
| 9 import platform | 9 import platform |
| 10 import signal | 10 import signal |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 # Use of the earlier -TERM placement is just fine on 10.5. | 166 # Use of the earlier -TERM placement is just fine on 10.5. |
| 167 null = open(os.devnull) | 167 null = open(os.devnull) |
| 168 subprocess.call(['killall', '-TERM', '-u', os.getenv('USER'), | 168 subprocess.call(['killall', '-TERM', '-u', os.getenv('USER'), |
| 169 process_name], stderr=null) | 169 process_name], stderr=null) |
| 170 null.close() | 170 null.close() |
| 171 | 171 |
| 172 | 172 |
| 173 def KillAllTestShells(): | 173 def KillAllTestShells(): |
| 174 """Kills all instances of the test_shell binary currently running.""" | 174 """Kills all instances of the test_shell binary currently running.""" |
| 175 KillAllProcess('TestShell') | 175 KillAllProcess('TestShell') |
| OLD | NEW |