Comment 2 for bug 583941

Revision history for this message
Andrew Bennetts (spiv) wrote : Re: [Bug 583941] Re: program crashes with "bzr: ERROR: socket.error: (4, 'Interrupted system call')"

Martin [gz] wrote:
[...]
> Otherwise the only options are ripping out the SIGWINCH code, or

I'm pretty tempted to do that, and maybe replace it with a small C
module that can install a simple SIGWINCH handler that avoids Python's
bugs. The module would just set a “terminal sized changed” flag that
bzrlib.osutils.terminal_width() would check before returning a result.