Python: how to kill child process(es) when parent dies?
Python: how to kill child process(es) when parent dies? Question: The child process is started with subprocess.Popen(arg) Is there a way to ensure it is killed when parent terminates abnormally? I need this to work both on Windows and Linux. I am aware of this solution for Linux. Edit: the requirement of starting a child …