the bitrig natano_ksh_loop branch has been created by natano.

it is 0 commits behind master, and 1 commit ahead.

commit 8167e2f3e0464eba0b509f7489e80a9a8ca465f0
diff: https://github.com/bitrig/bitrig/commit/8167e2f
author: Martin Natano <[email protected]>
date: Thu Mar 19 20:03:03 2015 +0100

Fix x_e_getc() to not enter an endless loop.

The read loop in x_e_getc() failed to clear the got_sigwinch variable
and wound up in an endless loop. The bug can be triggered in various
ways:

 * press ctrl-r, resize window
 * bind the version command to a keybinding and press it, resize window
 * press alt-1, resize window

The code in question was a special case for x_e_getc() that doesn't
redraw the prompt, when SIGWINCH arrives. After careful inspection of
all the callers (x_e_getc(0)), I conclude that, in fact, all the
callers errornously used the non-redrawing variant, while redrawing
would have been beneficial. The diff at hand removes the 'redr'
parameter from x_e_getc(), such that that function always redraws the
prompt when SIGWINCH arrives, circumventing the bug described above.

reported by pedro@

M       bin/ksh/emacs.c

Reply via email to