def METHOD_NAME(ignore_hup=False,raise_signals=defaultsigs):
    """!Installs signal handlers that will raise exceptions.
    @param ignore_hup If True, SIGHUP is ignored, else SIGHUP will
            raise HangupSignal
    @param raise_signals - List of exceptions that will raise
            FatalSignal.  If SIGHUP is in this list, that overrides
            any decision made through ignore_hup.    """
    global modifiedsigs
    if(ignore_hup):
        signal.signal(signal.SIGHUP,signal.SIG_IGN)
    elif signal.SIGHUP not in raise_signals:
        signal.signal(signal.SIGHUP,hup_handler)
    for sig in raise_signals:
        signal.signal(sig,term_handler)
    modifiedsigs=list(raise_signals)