def preexec_fn(): # don't forward signals to child process # we need this when starting a Pox subprocess, so that SIGINTs from the CLI # aren't forwarded to Pox, causing it to terminate early os.setpgrp()