signal.pause()
signal.pause() is a Python function in the Signal Module category. Blocks until a signal is received (Unix only). The syntax is signal.pause(). Returns: None. A typical example: signal.pause() # Wait for any signal. A close sibling is signal.signal(), which sets a handler for a signal (like SIGINT, SIGTERM). 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. A close sibling is signal.getsignal(), which returns the current signal handler for a given signal. More about this category: Async event handling — signal, alarm, pause, setitimer. Related Signal Module entries: signal.signal(), signal.alarm(), signal.setitimer(), signal.getsignal(), signal.SIG_DFL, signal.SIG_IGN. 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.pause() immediately in the Python playground, look up unfamiliar terms in the glossary, or return to the Python Reference homepage.