aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-12-02 17:57:25 +0100
committerMattias Andrée <maandree@operamail.com>2015-12-02 17:57:25 +0100
commit287d986501602f384e1c2aa941572a9aea5456e0 (patch)
treef4b8cc0fb64f90ea4930439147d3ae8e22509999
parentsupport up and left (diff)
downloadread-quickly-287d986501602f384e1c2aa941572a9aea5456e0.tar.gz
read-quickly-287d986501602f384e1c2aa941572a9aea5456e0.tar.bz2
read-quickly-287d986501602f384e1c2aa941572a9aea5456e0.tar.xz
make sure the timer has expired
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/rq.c4
1 files changed, 3 insertions, 1 deletions
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;