File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -346,8 +346,8 @@ def kill_process(
346
346
for child in parent .children (recursive = True ):
347
347
child .wait ()
348
348
349
- logger .debug (f"Terminating process { process .pid } : { process .args } " )
350
349
if not kill_children_only :
350
+ logger .debug (f"Terminating process { process .pid } : { process .args } " )
351
351
process .kill ()
352
352
process .wait ()
353
353
Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ def processes(self) -> list[psutil.Process]:
224
224
225
225
process_list += [self ._parent_process ]
226
226
227
+ # Attach child processes relating to the process set by set_pid
227
228
with contextlib .suppress (psutil .NoSuchProcess , psutil .ZombieProcess ):
228
229
for child in self ._parent_process .children (recursive = True ):
229
230
if child not in process_list :
You can’t perform that action at this time.
0 commit comments