Closing Windows console causes SIGBREAK in shell
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
BzrTools |
New
|
Undecided
|
Unassigned |
Bug Description
When using 'bzr shell' in a Windows console (CMD), closing the console window using the close button in the top right causes the following SIGBREAK error to be reported:
bzr> ** SIGBREAK received, entering debugger
** Type 'c' to continue or 'q' to stop the process
** Or SIGBREAK again to quit (and possibly dump core)
> h:\bzrlib\
Readline internal error
Traceback (most recent call last):
File "pyreadline\
File "pyreadline\
File "pyreadline\
File "pyreadline\
File "pyreadline\
File "pyreadline\
File "bzrlib\
File "bzrlib\
File "bdb.pyo", line 48, in trace_dispatch
File "bdb.pyo", line 66, in dispatch_line
File "pdb.pyo", line 144, in user_line
File "pdb.pyo", line 187, in interaction
File "cmd.pyo", line 130, in cmdloop
RuntimeError: can't re-enter readline
The following prevents the problem from occurring:
set BZR_SIGQUIT_PDB=0
So perhaps this would be better solved in the Bazaar Windows installer, by modifying the bzr.exe launcher to set this environment variable unless it's already set?