Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/tail Use sleep(1) instead of usleep(1000000) to slee...
details: https://anonhg.NetBSD.org/src/rev/c29ae38ab846
branches: trunk
changeset: 544060:c29ae38ab846
user: lukem <lukem%NetBSD.org@localhost>
date: Mon Mar 10 08:04:15 2003 +0000
description:
Use sleep(1) instead of usleep(1000000) to sleep for a second, since
usleep() doesn't support an argument >= 1000000.
Problem noted & fix provided in [bin/20644] from Dave Huang.
diffstat:
usr.bin/tail/forward.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 56278d653046 -r c29ae38ab846 usr.bin/tail/forward.c
--- a/usr.bin/tail/forward.c Mon Mar 10 08:01:11 2003 +0000
+++ b/usr.bin/tail/forward.c Mon Mar 10 08:04:15 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: forward.c,v 1.23 2002/10/30 21:48:50 jdolecek Exp $ */
+/* $NetBSD: forward.c,v 1.24 2003/03/10 08:04:15 lukem Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)forward.c 8.1 (Berkeley) 6/6/93";
#endif
-__RCSID("$NetBSD: forward.c,v 1.23 2002/10/30 21:48:50 jdolecek Exp $");
+__RCSID("$NetBSD: forward.c,v 1.24 2003/03/10 08:04:15 lukem Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -248,7 +248,7 @@
* We pause for one second after displaying any data
* that has accumulated since we read the file.
*/
- (void) usleep(1000000);
+ (void) sleep(1);
if (fflag == 2 && fileno(fp) != STDIN_FILENO &&
stat(fname, &statbuf) != -1) {
Home |
Main Index |
Thread Index |
Old Index