Source code for appyter.ext.subprocess

import os
import signal
import multiprocessing as mp

[docs]def interrupt(proc: mp.Process): try: os.kill(proc.pid, signal.SIGINT) except ProcessLookupError: pass except KeyboardInterrupt: raise except: proc.terminate()