libedit/libedit-3.0-sigwinch.patch
Kamil Dudka 5c537528d1 - eliminated compile-time warnings
- fix to not break the read loop on SIGWINCH (#575383)
2010-03-30 11:36:44 +00:00

13 lines
427 B
Diff

--- libedit-20090923-3.0/src/read.c.sigwinch 2009-09-23 22:04:26.000000000 +0100
+++ libedit-20090923-3.0/src/read.c 2010-03-19 20:47:46.000000000 +0000
@@ -301,6 +301,9 @@ read_char(EditLine *el, char *cp)
sig_set(el);
el_set(el, EL_REFRESH);
goto again;
+ } else if (el->el_signal->sig_no == SIGWINCH) {
+ sig_set(el);
+ goto again;
}
if (!tried && read__fixio(el->el_infd, errno) == 0)
tried = 1;