Re-use the code from emClarity that also creates a script in the background to make sure things get cleaned up after some time given a non-zero exit code.
Also return the process id from subprocess.call (if possible) so that we can wait on that return (or the time limit) and delete the file and the ramdisk if one was specifically created.
Re-use the code from emClarity that also creates a script in the background to make sure things get cleaned up after some time given a non-zero exit code.
Also return the process id from subprocess.call (if possible) so that we can wait on that return (or the time limit) and delete the file and the ramdisk if one was specifically created.