We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e98a00d commit 4dd5922Copy full SHA for 4dd5922
1 file changed
src/mcp/client/stdio/win32.py
@@ -161,6 +161,7 @@ async def create_windows_process(
161
)
162
return FallbackProcess(popen_obj)
163
164
+
165
async def terminate_windows_process(process: Process | FallbackProcess):
166
"""
167
Terminate a process and subprocesses.
@@ -175,7 +176,7 @@ async def terminate_windows_process(process: Process | FallbackProcess):
175
176
children = parent.children(recursive=True)
177
await terminate_psutil_process(children)
178
await terminate_psutil_process([parent])
-
179
180
181
async def terminate_psutil_process(processes: list[psutil.Process]):
182
@@ -205,6 +206,3 @@ async def terminate_psutil_process(processes: list[psutil.Process]):
205
206
pass # Already gone
207
except Exception:
208
pass
209
210
0 commit comments