I\'m using python to manage some simulations. I build the parameters and run the program using:
pipe = open(\'/dev/null\', \'w\') pid = subprocess.Popen(shle
Combining some of other answers that will do the trick - no signal sent to main app will be forwarded to the subprocess.
import os from subprocess import Popen def preexec(): # Don't forward signals. os.setpgrp() Popen('whatever', preexec_fn = preexec)