Python – Kill an Active Subprocess Running in its Own Thread
I have a Python application that starts a subprocess that runs a bash script in another thread and in a separate shell. Note that this script starts a REST service and thus it does not terminate until its explicitly told to (e.g. using crl+c).