|
|
|
@ -110,6 +110,9 @@ def detect_markers(psid, pid): |
|
|
|
# 获取主进程的 PID |
|
|
|
# 获取主进程的 PID |
|
|
|
pidddd = process.pid |
|
|
|
pidddd = process.pid |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
while True: |
|
|
|
|
|
|
|
print("process",process.wait()) |
|
|
|
|
|
|
|
|
|
|
|
# 在等待主进程的同时,检查子进程的状态 |
|
|
|
# 在等待主进程的同时,检查子进程的状态 |
|
|
|
while process.poll() is None: |
|
|
|
while process.poll() is None: |
|
|
|
print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} pid: {pid} 进程 {pidddd} 运行中...') |
|
|
|
print(f'{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())} pid: {pid} 进程 {pidddd} 运行中...') |
|
|
|
|