File tree Expand file tree Collapse file tree 2 files changed +15
-7
lines changed
Expand file tree Collapse file tree 2 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 11### 更新日志
22
3- #### JadeV2.2.8 - 2024-06-13
4- * 新增根据进程id,强制退出关联进程
5- * 解决子进程无法退出的bug
3+ #### JadeV2.2.9 - 2024-06-13
4+ * 解决获取父进程异常的bug
65---
76
7+
88<details onclose >
99<summary >查看更多更新日志</summary >
1010
11+ #### JadeV2.2.8 - 2024-06-13
12+ * 新增根据进程id,强制退出关联进程
13+ * 解决子进程无法退出的bug
14+ ---
15+
1116#### JadeV2.2.7 - 2024-06-12
1217* 使用线程监听程序异常问题,不在阻塞主线程
1318* 解决子进程无法退出的bug
Original file line number Diff line number Diff line change @@ -510,10 +510,13 @@ def clear_process_queue(process_id_queue):
510510
511511def clear_process (process_id ):
512512 import psutil
513- process = psutil .Process (process_id )
514- for proc in process .children (recursive = True ):
515- proc .kill ()
516- process .kill ()
513+ try :
514+ process = psutil .Process (process_id )
515+ for proc in process .children (recursive = True ):
516+ proc .kill ()
517+ process .kill ()
518+ except :
519+ pass
517520
518521
519522if __name__ == '__main__' :
You can’t perform that action at this time.
0 commit comments