1
# Copyright (C) 2006 Canonical Ltd
7
def _debug(signal_number, interrupted_frame):
8
sys.stderr.write("** SIGQUIT received, entering debugger\n"
9
"** Type 'c' to continue or 'q' to stop the process\n")
13
# when sigquit (C-\) is received go into pdb
14
# XXX: is this meaningful on Windows?
15
signal.signal(signal.SIGQUIT, _debug)