MCPcopy Index your code
hub / github.com/python/cpython / install_signal_handler

Function install_signal_handler

Android/android.py:862–866  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

860# Handle SIGTERM the same way as SIGINT. This ensures that if we're terminated
861# by the buildbot worker, we'll make an attempt to clean up our subprocesses.
862def install_signal_handler():
863 def signal_handler(*args):
864 os.kill(os.getpid(), signal.SIGINT)
865
866 signal.signal(signal.SIGTERM, signal_handler)
867
868
869def parse_args():

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…