diff options
| author | Jim Meyering <jim@meyering.net> | 1998-01-04 22:45:28 +0000 |
|---|---|---|
| committer | Jim Meyering <jim@meyering.net> | 1998-01-04 22:45:28 +0000 |
| commit | 5d4f8ebdfda9a4aadaeb30aebd34542e55bc13e1 (patch) | |
| tree | ebcd4ea3aeb95093c8658d1442ee10612a29f438 /src/sync.c | |
| parent | (parse_long_options): Check for write error to stdout before exiting. (diff) | |
| download | coreutils-5d4f8ebdfda9a4aadaeb30aebd34542e55bc13e1.tar.gz coreutils-5d4f8ebdfda9a4aadaeb30aebd34542e55bc13e1.zip | |
(main, usage): Check for write error to stdout before exiting.
Include "closeout.h".
Diffstat (limited to 'src/sync.c')
| -rw-r--r-- | src/sync.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <fileutils-bugs@gnu.org>.")); + close_stdout (); } exit (status); } |
