diff options
author | ache <ache@FreeBSD.org> | 1997-12-12 11:47:28 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1997-12-12 11:47:28 +0000 |
commit | 4fe5164a59de31a63b47cc006af9b5adfc06cc82 (patch) | |
tree | 12de625bb0a64d4ab0aaf28b5004d80a5789ad32 /usr.bin/tail | |
parent | 73101d44a61689a10ab669ce734d238759cd3174 (diff) | |
download | FreeBSD-src-4fe5164a59de31a63b47cc006af9b5adfc06cc82.zip FreeBSD-src-4fe5164a59de31a63b47cc006af9b5adfc06cc82.tar.gz |
Change select(0, NULL, ...) to usleep()
Diffstat (limited to 'usr.bin/tail')
-rw-r--r-- | usr.bin/tail/forward.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/tail/forward.c b/usr.bin/tail/forward.c index ea14f80..1c4020d 100644 --- a/usr.bin/tail/forward.c +++ b/usr.bin/tail/forward.c @@ -177,11 +177,7 @@ forward(fp, style, off, sbp) if (!fflag) break; - interval.tv_sec = 0; - interval.tv_usec = 250000; - if (select(0, NULL, NULL, NULL, &interval) == -1) - if (errno != EINTR) - err(1, "select"); + (void) usleep(250000); clearerr(fp); } } |