(sig, frame)
SIGINT handler.

    Notify any clients that are in a reconnect loop to abort. Other
    disconnection tasks are handled at the engine.io level.
SIGINT handler.
SIGINT handler .
def signal_handler(sig, frame):  # pragma: no cover
    """SIGINT handler.

    Notify any clients that are in a reconnect loop to abort. Other
    disconnection tasks are handled at the engine.io level.
    """
    for client in reconnecting_clients[:]:
        client._reconnect_abort.set()
    if callable(original_signal_handler):
        return original_signal_handler(sig, frame)
    else:  # pragma: no cover
        # Handle case where no original SIGINT handler was present.
        return signal.default_int_handler(sig, frame)
def signal_handler ( sig , frame ) : # pragma: no cover for client in reconnecting_clients [ : ] : client . _reconnect_abort . set ( ) if callable ( original_signal_handler ) : return original_signal_handler ( sig , frame ) else : # pragma: no cover # Handle case where no original SIGINT handler was present. return signal . default_int_handler ( sig , frame )