We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 92dd860 commit 826c419Copy full SHA for 826c419
src/mcp/client/stdio/win32.py
@@ -166,6 +166,10 @@ async def terminate_windows_process(process: Process | FallbackProcess):
166
"""
167
Terminate a process and subprocesses.
168
169
+ try:
170
+ parent = psutil.Process(process.pid)
171
+ except psutil.NoSuchProcess:
172
+ return
173
parent = psutil.Process(process.pid)
174
children = parent.children(recursive=True)
175
await terminate_psutil_process(children)
0 commit comments