()
Install signal handlers that might print a useful stack trace when
    this process receives a fatal signal.

    NOTE: See module docstring
Install signal handlers that might print a useful stack trace when
    this process receives a fatal signal.
Install signal handlers that might print a useful stack trace when this process receives a fatal signal .
def dumpStackOnFatalSignal():
    """
    Install signal handlers that might print a useful stack trace when
    this process receives a fatal signal.

    NOTE: See module docstring
    """

    global originalHandlers
    if not originalHandlers:
        originalHandlers = {}
        installHandler(signal.SIGQUIT)
        installHandler(signal.SIGILL)
        installHandler(signal.SIGTRAP)
        installHandler(signal.SIGABRT)
        installHandler(signal.SIGEMT)
        installHandler(signal.SIGFPE)
        installHandler(signal.SIGBUS)
        installHandler(signal.SIGSEGV)
        installHandler(signal.SIGSYS)
def dumpStackOnFatalSignal ( ) : global originalHandlers if not originalHandlers : originalHandlers = { } installHandler ( signal . SIGQUIT ) installHandler ( signal . SIGILL ) installHandler ( signal . SIGTRAP ) installHandler ( signal . SIGABRT ) installHandler ( signal . SIGEMT ) installHandler ( signal . SIGFPE ) installHandler ( signal . SIGBUS ) installHandler ( signal . SIGSEGV ) installHandler ( signal . SIGSYS )