20def cleanup(num, frame):
23 os.killpg(proc.pid, signal.SIGINT)
30signal.signal(signal.SIGINT, cleanup)
31signal.signal(signal.SIGTERM, cleanup)
43script =
"processor.py"
46proc = subprocess.Popen(
"basf2 --no-stats " + script +
" " + inputrb +
" " + outputrb +
47 " " + histport +
" " + ncore, shell=
True, preexec_fn=os.setsid)