signal.SIG_IGN
signal.SIG_IGN is a Python function in the Signal Module category. Signal handler that ignores the signal. The syntax is signal.SIG_IGN. Returns: Handler constant. A typical example: signal.signal(signal.SIGHUP, signal.SIG_IGN) # Ignore SIGHUP. A close sibling is signal.signal(), which sets a handler for a signal (like SIGINT, SIGTERM). A close sibling is signal.pause(), which blocks until a signal is received (Unix only). A close sibling is signal.alarm(), which sets a SIGALRM timer in seconds. Only one alarm can be pending. A close sibling is signal.setitimer(), which sets an interval timer with microsecond precision. More about this category: Async event handling — signal, alarm, pause, setitimer. Related Signal Module entries: signal.signal(), signal.pause(), signal.alarm(), signal.setitimer(), signal.getsignal(), signal.SIG_DFL. This page is part of the free Python Reference documentation covering 978+ functions, methods, and modules with examples and parameter details. You can try signal.SIG_IGN immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.