Commit 33ab237
committed
Revert FallbackProcess to synchronous termination approach
This reverts the FallbackProcess termination logic to use synchronous
wait in a thread rather than async polling. The previous async polling
approach with anyio.sleep(0.1) may have been causing resource cleanup
issues in Windows CI with Python 3.10.
The synchronous approach:
- Uses to_thread.run_sync() to wait for process termination
- Removes the timeout-based termination attempt
- Simplifies the wait() method to directly use popen.wait()
This should resolve the unclosed transport warnings seen in CI tests.1 parent a675bd5 commit 33ab237
1 file changed
+6
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
12 | 13 | | |
13 | 14 | | |
14 | 15 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
89 | 81 | | |
90 | 82 | | |
91 | 83 | | |
| |||
100 | 92 | | |
101 | 93 | | |
102 | 94 | | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
| 95 | + | |
| 96 | + | |
110 | 97 | | |
111 | 98 | | |
112 | 99 | | |
| |||
0 commit comments