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@xxxxxxxxxxxxx> --- misc-utils/logger.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/misc-utils/logger.c b/misc-utils/logger.c index 067272a..19b4c47 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; -- 1.7.10.2 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html