File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,7 @@ async def create_windows_process(
161161 )
162162 return FallbackProcess (popen_obj )
163163
164+
164165async def terminate_windows_process (process : Process | FallbackProcess ):
165166 """
166167 Terminate a process and subprocesses.
@@ -175,7 +176,7 @@ async def terminate_windows_process(process: Process | FallbackProcess):
175176 children = parent .children (recursive = True )
176177 await terminate_psutil_process (children )
177178 await terminate_psutil_process ([parent ])
178-
179+
179180
180181async def terminate_psutil_process (processes : list [psutil .Process ]):
181182 """
@@ -205,6 +206,3 @@ async def terminate_psutil_process(processes: list[psutil.Process]):
205206 pass # Already gone
206207 except Exception :
207208 pass
208-
209-
210-
You can’t perform that action at this time.
0 commit comments