Lines Matching refs:signal
19 import signal
29 _HAVE_SIGMASK = hasattr(signal, 'pthread_sigmask')
30 _IGNORED_SIGNALS = (signal.SIGINT, signal.SIGTERM)
120 # bpo-33613: Register a signal mask that will block the signals.
121 # This signal mask will be inherited by the child that is going
123 # that can make the child die before it registers signal handlers
128 signal.pthread_sigmask(signal.SIG_BLOCK, _IGNORED_SIGNALS)
132 signal.pthread_sigmask(signal.SIG_UNBLOCK, _IGNORED_SIGNALS)
182 signal.signal(signal.SIGINT, signal.SIG_IGN)
183 signal.signal(signal.SIGTERM, signal.SIG_IGN)
185 signal.pthread_sigmask(signal.SIG_UNBLOCK, _IGNORED_SIGNALS)