~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/breakin.py

  • Committer: Vincent Ladeuil
  • Date: 2007-04-26 09:01:46 UTC
  • mfrom: (2420.2.2 bzr.http.auth)
  • mto: This revision was merged to the branch mainline in revision 2463.
  • Revision ID: v.ladeuil+lp@free.fr-20070426090146-jbwl0muvk76wlw6c
Merge spiv modifications

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
 
36
36
def hook_sigquit():
37
37
    # when sigquit (C-\) is received go into pdb
38
 
    # XXX: is this meaningful on Windows?
39
 
    if os.environ.get('BZR_SIGQUIT_PDB', '1') == '0':
 
38
    if (os.environ.get('BZR_SIGQUIT_PDB', '1') == '0'
 
39
        or getattr(signal, 'SIGQUIT', None) is None):
40
40
        return
41
41
    signal.signal(signal.SIGQUIT, _debug)