diff options
Diffstat (limited to 'disk-utils/fdformat.c')
-rw-r--r-- | disk-utils/fdformat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/disk-utils/fdformat.c b/disk-utils/fdformat.c index 29782ec9a..ec2f6170e 100644 --- a/disk-utils/fdformat.c +++ b/disk-utils/fdformat.c @@ -12,6 +12,7 @@ #include <unistd.h> #include "c.h" +#include "closestream.h" #include "nls.h" #include "xalloc.h" @@ -119,6 +120,7 @@ int main(int argc, char **argv) setlocale(LC_ALL, ""); bindtextdomain(PACKAGE, LOCALEDIR); textdomain(PACKAGE); + atexit(close_stdout); while ((ch = getopt_long(argc, argv, "nVh", longopts, NULL)) != -1) switch (ch) { |