scripts/run.py
def signal_handler(signum, stackframe):
    """Helper function to handle caught signals."""
    global g_runner
    global g_handling_signal

    if g_handling_signal:
        # Don't do this recursively.
        return
    g_handling_signal = True

    print("")
    print("----------------------------------------------------------------------")
    print("")
    print("SIGNAL CAUGHT (" + str(signum) + ").  TEARING DOWN CLOUDS.")
    print("")
    print("----------------------------------------------------------------------")
    g_runner.terminate()
def signal_handler(signum, stackframe):
    global g_runner
    global g_handling_signal

    if g_handling_signal:
        # Don't do this recursively.
        return
    g_handling_signal = True

    print("")
    print("----------------------------------------------------------------------")
    print("")
    print("SIGNAL CAUGHT (" + str(signum) + ").  TEARING DOWN CLOUDS.")
    print("")
    print("----------------------------------------------------------------------")
    g_runner.terminate()
def signal_handler ( signum , stackframe ) : global g_runner global g_handling_signal if g_handling_signal : # Don't do this recursively. return g_handling_signal = True print ( "" ) print ( "----------------------------------------------------------------------" ) print ( "" ) print ( "SIGNAL CAUGHT (" + str ( signum ) + ").  TEARING DOWN CLOUDS." ) print ( "" ) print ( "----------------------------------------------------------------------" ) g_runner . terminate ( )
Helper function to handle caught signals.
Helper function to handle caught signals .