Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Nov 2002 10:20:01 -0800 (PST)
From:      Nate Lawson <nate@root.org>
To:        Sheldon Hearn <sheldonh@starjuice.net>
Cc:        current@freebsd.org
Subject:   Re: sleep(1) behavior
Message-ID:  <Pine.BSF.4.21.0211131019090.39871-100000@root.org>
In-Reply-To: <Pine.BSF.4.21.0211131003010.39871-200000@root.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Forgot to fix usage (STDERR, not STDOUT):

@@ -128,7 +120,8 @@
 void
 usage(void)
 {
+       const char *msg = "usage: sleep seconds\n";
 
-       (void)fprintf(stderr, "usage: sleep seconds\n");
+       write(STDERR_FILENO, msg, strlen(msg));
        exit(1);
 }


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0211131019090.39871-100000>