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) |
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 |