summaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorToby Goodwin <tjg@star.le.ac.uk>2003-08-13 13:51:14 +0100
committerToby Goodwin <toby@paccrat.org>2015-05-16 21:22:10 +0100
commitd884971193ef4934424b77ae862e8b0ecf70bab3 (patch)
tree700b8fd63be483aaa2a737036a3f7833fdf7b26a /input.c
parent77b18786228a8cf9f58aee09677440c61dc218a9 (diff)
release: rc-1.7.1
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;