diff options
Diffstat (limited to 'term-utils/script.c')
-rw-r--r-- | term-utils/script.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/term-utils/script.c b/term-utils/script.c index 990b4a1e7..9fdef2e27 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -322,6 +322,7 @@ static void handle_io(struct script_control *ctl, int fd, int *eof) DBG(IO, ul_debug("%d FD active", fd)); *eof = 0; + errno = 0; /* read from active FD */ bytes = read(fd, buf, sizeof(buf)); |