From 5d4f8ebdfda9a4aadaeb30aebd34542e55bc13e1 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 4 Jan 1998 22:45:28 +0000 Subject: (main, usage): Check for write error to stdout before exiting. Include "closeout.h". --- src/sync.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/sync.c') diff --git a/src/sync.c b/src/sync.c index dc0e9edd6..41fcd69d9 100644 --- a/src/sync.c +++ b/src/sync.c @@ -1,5 +1,5 @@ /* sync - update the super block - Copyright (C) 94, 95, 96, 1997 Free Software Foundation, Inc. + Copyright (C) 94, 95, 96, 97, 1998 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,6 +23,7 @@ #include "system.h" #include "long-options.h" +#include "closeout.h" #include "error.h" /* The name this program was run with. */ @@ -44,6 +45,7 @@ Force changed blocks to disk, update the super block.\n\ --version output version information and exit\n\ ")); puts (_("\nReport bugs to .")); + close_stdout (); } exit (status); } -- cgit v1.2.3