def send_signals()

in dcrpm/pidutil.py [0:0]


def send_signals(procs, signal, timeout=DEFAULT_TIMEOUT):
    # type: (t.Iterable[psutil.Process], enum.IntEnum, int) -> bool
    """
    Sends signal to all processes in `procs`. Returns whether anything was
    successfully signaled.
    """
    was_killed = [send_signal(p, signal, timeout) for p in procs]
    return any(was_killed)