summaryrefslogtreecommitdiff
path: root/usr.bin/tail
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1997-10-11 07:32:43 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1997-10-11 07:32:43 +0000
commitee7b3b06394ab2021d005f3fae993fae9f843430 (patch)
tree91f52306dedb9545eece888061f5e88efda14582 /usr.bin/tail
parentfc702c5bc8ce1beb97c22c2229cf9f7dd0439e04 (diff)
Notes
Diffstat (limited to 'usr.bin/tail')
-rw-r--r--usr.bin/tail/forward.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c
index d1c8722c9b20..ea14f80ae5c4 100644
--- a/usr.bin/tail/forward.c
+++ b/usr.bin/tail/forward.c
@@ -85,7 +85,7 @@ forward(fp, style, off, sbp)
struct stat *sbp;
{
register int ch;
- struct timeval second;
+ struct timeval interval;
switch(style) {
case FBYTES:
@@ -177,10 +177,9 @@ forward(fp, style, off, sbp)
if (!fflag)
break;
- /* Sleep(3) is eight system calls. Do it fast. */
- second.tv_sec = 0;
- second.tv_usec = 250000;
- if (select(0, NULL, NULL, NULL, &second) == -1)
+ interval.tv_sec = 0;
+ interval.tv_usec = 250000;
+ if (select(0, NULL, NULL, NULL, &interval) == -1)
if (errno != EINTR)
err(1, "select");
clearerr(fp);