summaryrefslogtreecommitdiffstats
path: root/sys-utils/fallocate.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/fallocate.c')
-rw-r--r--sys-utils/fallocate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys-utils/fallocate.c b/sys-utils/fallocate.c
index 5fc13fe62..adfaa70f7 100644
--- a/sys-utils/fallocate.c
+++ b/sys-utils/fallocate.c
@@ -51,7 +51,7 @@
#include "nls.h"
#include "strutils.h"
#include "c.h"
-
+#include "closestream.h"
static void __attribute__((__noreturn__)) usage(FILE *out)
{
@@ -104,6 +104,7 @@ int main(int argc, char **argv)
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while ((c = getopt_long(argc, argv, "hVnpl:o:", longopts, NULL)) != -1) {
switch(c) {