-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[blinkpy] Replace
threading.Timer
for timing out subprocesses
`Timer` is a non-daemonic thread [0] that `Executive.run_command(...)` uses to kill a timed out subprocess. When `run_wpt_tests.py` is interrupted during the manifest update, the timer thread is leaked and blocks the program from exiting. This change replaces the timer with the `timeout` argument of `communicate(...)`, which was added in python3.3. Also, conditionally reenable tests for the timeout behavior of `Executive`. [0]: https://github.com/python/cpython/blob/3.11/Lib/threading.py#L1370-L1395 Bug: 1382175 Change-Id: I6c982b62a76a3036f341b6fcc711ab29fe33e78e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4624520 Commit-Queue: Jonathan Lee <jonathanjlee@google.com> Reviewed-by: Weizhong Xia <weizhong@google.com> Cr-Commit-Position: refs/heads/main@{#1159429}
- Loading branch information
1 parent
4bf586e
commit 459027e
Showing
2 changed files
with
13 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters