summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
Diffstat (limited to 'input.c')
-rw-r--r--input.c4
1 files changed, 3 insertions, 1 deletions
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;