equal
deleted
inserted
replaced
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 |