aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-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;