From 287d986501602f384e1c2aa941572a9aea5456e0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Wed, 2 Dec 2015 17:57:25 +0100 Subject: make sure the timer has expired MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/rq.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rq.c b/src/rq.c index 3382a1f..63d5910 100644 --- a/src/rq.c +++ b/src/rq.c @@ -60,7 +60,6 @@ */ static const char *argv0; - /** * Have the terminal been resized? */ @@ -286,6 +285,9 @@ static int display_file(int fd, int ttyfd, long rate) goto rewait; break; case 0: + if (!caught_sigalrm) + goto rewait; + caught_sigalrm = 0; break; default: goto rewait; -- cgit v1.2.3-70-g09d2