diff options
-rw-r--r-- | term-utils/script.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/term-utils/script.c b/term-utils/script.c index 456958b60..e5d239c9b 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -422,13 +422,14 @@ dooutput(void) { if (poll(fds, 1, 50) <= 0) break; } - if (tflg) - gettimeofday(&tv, NULL); errno = 0; cc = read(master, obuf, sizeof (obuf)); errsv = errno; + if (tflg) + gettimeofday(&tv, NULL); + if (errsv == EINTR && cc <= 0) continue; /* try it again */ if (cc <= 0) |