contrib/showstack.py
changeset 35656 c9eb92fb87b7
parent 28522 f2fe7b199bb4
child 40036 acf5dbe39478
equal deleted inserted replaced
35655:2f54a3e228ff 35656:c9eb92fb87b7
     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)
       
     5 """
     4 
     6 
     5 from __future__ import absolute_import
     7 from __future__ import absolute_import
     6 import signal
     8 import signal
     7 import sys
     9 import sys
     8 import traceback
    10 import traceback