subprocess.killed


  • <boolean> 当调用 subprocess.kill() 发送信号给子进程后,该值会被设为 true

表明子进程是否已成功接收到 subprocess.kill() 的信号。 但并不表明子进程是否已被终止。

  • <boolean> Set to true after subprocess.kill() is used to successfully send a signal to the child process.

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.