From a099278f6289d9cd3bda09215dd08de50833285c Mon Sep 17 00:00:00 2001 From: tjg Date: Wed, 31 Jul 2002 12:28:01 +0000 Subject: Bug: readline doesn't handle EIO either. --- ChangeLog | 4 ++++ input.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 506ff32..9358c09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -792,3 +792,7 @@ Changes since rc-1.5b2 2002-07-25 Bug: fix globbing of broken symlinks. + +2002-07-31 + + Bug: readline doesn't handle EIO either. diff --git a/input.c b/input.c index 1c47aee..c5ac5fc 100644 --- a/input.c +++ b/input.c @@ -96,8 +96,10 @@ static int fdgchar() { while (1) { #if EDITLINE || READLINE if (interactive && istack->t == iFd && isatty(istack->fd)) { - /* The readline library doesn't handle read() returning EAGAIN. */ + /* The readline library doesn't handle + * read() returning EAGAIN or EIO. */ makeblocking(istack->fd); + makesamepgrp(istack->fd); rlinebuf = rc_readline(prompt); if (rlinebuf == NULL) { chars_in = 0; -- cgit v1.2.3