]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
logger: avoid explicit fclose(stdout)
authorDave Reisner <dreisner@archlinux.org>
Wed, 23 May 2012 20:35:58 +0000 (16:35 -0400)
committerKarel Zak <kzak@redhat.com>
Tue, 29 May 2012 07:32:10 +0000 (09:32 +0200)
This is done for us via an atexit hook since c05a80ca6385b8. Avoids a
useless 'Write error' on exit whenever invoking the tool.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
misc-utils/logger.c

index 067272ad4683b10d6800788a069cc6d8cd855f6a..19b4c479ab4bd4165387f123835a952ce6f8d575 100644 (file)
@@ -248,8 +248,6 @@ main(int argc, char **argv) {
        else
                LogSock = myopenlog(usock);
 
-       (void) fclose(stdout);
-
        /* log input line if appropriate */
        if (argc > 0) {
                register char *p, *endp;