Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/sleep PR/27140: "sleep time" doesn't error out.



details:   https://anonhg.NetBSD.org/src/rev/118db8cc46f1
branches:  trunk
changeset: 585109:118db8cc46f1
user:      elad <elad%NetBSD.org@localhost>
date:      Mon Oct 17 10:11:46 2005 +0000

description:
PR/27140: "sleep time" doesn't error out.
Apply fix from Dheeraj Reddy.

diffstat:

 bin/sleep/sleep.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f14ddfd98686 -r 118db8cc46f1 bin/sleep/sleep.c
--- a/bin/sleep/sleep.c Mon Oct 17 03:08:24 2005 +0000
+++ b/bin/sleep/sleep.c Mon Oct 17 10:11:46 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sleep.c,v 1.19 2003/08/07 09:05:41 agc Exp $ */
+/* $NetBSD: sleep.c,v 1.20 2005/10/17 10:11:46 elad Exp $ */
 
 /*
  * Copyright (c) 1988, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)sleep.c    8.3 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: sleep.c,v 1.19 2003/08/07 09:05:41 agc Exp $");
+__RCSID("$NetBSD: sleep.c,v 1.20 2005/10/17 10:11:46 elad Exp $");
 #endif
 #endif /* not lint */
 
@@ -103,7 +103,7 @@
        if (fracflag) {
                val = atof(arg);
                if (val <= 0)
-                       exit(0);
+                       usage();
                ival = floor(val);
                fval = (1000000000 * (val-ival));
                ntime.tv_sec = ival;



Home | Main Index | Thread Index | Old Index