On 8/20/15 11:35 AM, Lubomir Rintel wrote:
> When a terminal disappears (and SIGHUP is blocked), attempt to peek into the
> input buffer results in an EIO. We should not pretend it's an ordinary line
> break, since then the caller would likely try to read another line, resulting
> in an endless loop. Insert a READERR instead: readline_internal_char() treats
> that as an EOF and communicates to the caller properly.
Thanks for the report. This is the right place to look at a fix, but
READERR only works correctly when readline is reading a command.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/
_______________________________________________
Bug-readline mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-readline