contrib/showstack.py
changeset 41548 6dae1f31c6c9
parent 40036 acf5dbe39478
child 43076 2372284d9457
equal deleted inserted replaced
41547:f16c03c7a3d7 41548:6dae1f31c6c9
     1 # showstack.py - extension to dump a Python stack trace on signal
     1 # showstack.py - extension to dump a Python stack trace on signal
     2 #
     2 #
     3 # binds to both SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs)
     3 # binds to both SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs)
     4 """dump stack trace when receiving SIGQUIT (Ctrl-\) and SIGINFO (Ctrl-T on BSDs)
     4 r"""dump stack trace when receiving SIGQUIT (Ctrl-\) or SIGINFO (Ctrl-T on BSDs)
     5 """
     5 """
     6 
     6 
     7 from __future__ import absolute_import, print_function
     7 from __future__ import absolute_import, print_function
     8 import signal
     8 import signal
     9 import sys
     9 import sys