~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/breakin.py

  • Committer: Alexander Belchenko
  • Date: 2007-04-25 04:46:07 UTC
  • mto: This revision was merged to the branch mainline in revision 2454.
  • Revision ID: bialix@ukr.net-20070425044607-qbl5oce7jygaxat2
explicitly check for SIGQUIT in 'signal' stdlib module (it's absent on win32)

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)