Ensuring subprocesses are dead on exiting Python program

后端 未结 14 1705
有刺的猬
有刺的猬 2020-12-02 09:17

Is there a way to ensure all created subprocess are dead at exit time of a Python program? By subprocess I mean those created with subprocess.Popen().

If not, should

14条回答
  •  失恋的感觉
    2020-12-02 09:51

    help for python code: http://docs.python.org/dev/library/subprocess.html#subprocess.Popen.wait

提交回复
热议问题