

def signal_to_exception(signum, frame):
    '\n    Called by the timeout alarm during the collector run time\n    '
    if (signum == signal.SIGALRM):
        raise SIGALRMException()
    if (signum == signal.SIGHUP):
        raise SIGHUPException()
    if (signum == signal.SIGUSR1):
        raise SIGUSR1Exception()
    if (signum == signal.SIGUSR2):
        raise SIGUSR2Exception()
    raise SignalException(frame)

dataset/ETHPy150Open BrightcoveOS/Diamond/src/diamond/utils/signals.py signal_to_exception/VarMisuse@85/145 `signum`->`frame`