summaryrefslogtreecommitdiffstats
path: root/misc-utils
diff options
context:
space:
mode:
authorDave Reisner2012-05-23 22:35:58 +0200
committerKarel Zak2012-05-29 09:32:10 +0200
commit652add4c2cdd005fea8b5a5c198d31ecba5754ce (patch)
tree58c164b6be84433541f3dc37bae0c5befc5d0ad6 /misc-utils
parentmount: (new) fix MS_REC usage (diff)
downloadkernel-qcow2-util-linux-652add4c2cdd005fea8b5a5c198d31ecba5754ce.tar.gz
kernel-qcow2-util-linux-652add4c2cdd005fea8b5a5c198d31ecba5754ce.tar.xz
kernel-qcow2-util-linux-652add4c2cdd005fea8b5a5c198d31ecba5754ce.zip
logger: avoid explicit fclose(stdout)
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>
Diffstat (limited to 'misc-utils')
-rw-r--r--misc-utils/logger.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/misc-utils/logger.c b/misc-utils/logger.c
index 067272ad4..19b4c479a 100644
--- a/misc-utils/logger.c
+++ b/misc-utils/logger.c
@@ -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;