def kill(patch, pid, sig):
    """Send signal sig to the process pid. Constants for the specific signals available on the host platform are defined in the signal module"""
    io = os_popen.VoidIO()
    _stash(
        "kill {pid}".format(pid=pid),
        add_to_history=False,
        final_errs=io,
        final_outs=io,
        final_ins=io,
    )
Send signal sig to the process pid. Constants for the specific signals available on the host platform are defined in the signal module
lib/mlpatches/os_process.py