I'm running a python test script, which calls something that looks like the following:
def execute():
p = subprocess.Popen(params)
return (p)
The python test script is called by a shell script, which has a time out kill signal. After a period of time, a kill signal is sent to the python script. The kill signal will kill the script, but it leaves the Popen subprocess.
How would I go about catching the kill signal in the python script and sending it to the subprocess?