Commit ab8eec9
committed
Fix Windows test hanging due to double process termination
The FallbackProcess.__aexit__ method was automatically terminating
processes on context exit, which conflicted with stdio_client's
explicit cleanup sequence. This caused the test_stdio_client_universal_cleanup
test to hang on Windows.
The fix removes automatic termination from FallbackProcess.__aexit__,
allowing stdio_client to handle the MCP spec-compliant shutdown sequence:
1. Close stdin and wait for graceful exit
2. Send terminate signal if needed
3. Force kill as last resort
This prevents the double termination attempt that was causing hangs.
Reported-by: fweinberger1 parent ecfd6af commit ab8eec9
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
80 | 81 | | |
81 | 82 | | |
82 | 83 | | |
| |||
0 commit comments