subprocess.killed
- <boolean> 在成功向子进程发送信号后,将其设置为
true,之前使用的是subprocess.kill()。
subprocess.killed 属性表示子进程是否成功接收到来自 subprocess.kill() 的信号。killed 属性并不表示子进程已经被终止。
🌐 The subprocess.killed property indicates whether the child process
successfully received a signal from subprocess.kill(). The killed property
does not indicate that the child process has been terminated.