| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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 """Locking, timeout, and other process management functions.""" | 5 """Locking, timeout, and other process management functions.""" |
| 6 | 6 |
| 7 import contextlib | 7 import contextlib |
| 8 import ctypes | 8 import ctypes |
| 9 import ctypes.wintypes | 9 import ctypes.wintypes |
| 10 import os | 10 import os |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 try: | 85 try: |
| 86 yield | 86 yield |
| 87 finally: | 87 finally: |
| 88 CloseHandle(handle) | 88 CloseHandle(handle) |
| 89 | 89 |
| 90 | 90 |
| 91 def add_timeout(_cmd, _timeout_secs): # pragma: no cover | 91 def add_timeout(_cmd, _timeout_secs): # pragma: no cover |
| 92 raise NotImplementedError | 92 raise NotImplementedError |
| 93 | 93 |
| 94 | 94 |
| 95 def close_all_fds(_keep_fds): # pragma: no cover |
| 96 raise NotImplementedError |
| 97 |
| 98 |
| 95 def become_daemon(_keep_fds=None): # pragma: no cover | 99 def become_daemon(_keep_fds=None): # pragma: no cover |
| 96 raise NotImplementedError | 100 raise NotImplementedError |
| OLD | NEW |