I should clarify that this patch doesn't fully workaround that bug, but it helps in the case that there's some IO between delivery of signals (so that my signal handler gets a chance to redo the siginterrupt call that Python undoes). The only relevant signal for current bzr is SIGWINCH, so IO just needs to happen more often than a window resize event, which is plausible — it did fix the immediate issue that I ran into as a user.
I filed <http:// bugs.python. org/issue8354> about this.
I should clarify that this patch doesn't fully workaround that bug, but it helps in the case that there's some IO between delivery of signals (so that my signal handler gets a chance to redo the siginterrupt call that Python undoes). The only relevant signal for current bzr is SIGWINCH, so IO just needs to happen more often than a window resize event, which is plausible — it did fix the immediate issue that I ran into as a user.