How to terminate a python subprocess launched with shell=True
I’m launching a subprocess with the following command:
I’m launching a subprocess with the following command:
On Windows, subprocess.Popen.terminate calls win32’s TerminalProcess. However, the behavior I see is that child processes of the process I am trying to terminate are still running. Why is that? How do I ensure all child processes started by the process are killed?