summaryrefslogtreecommitdiffstats
path: root/partx/partx.c
diff options
context:
space:
mode:
Diffstat (limited to 'partx/partx.c')
-rw-r--r--partx/partx.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/partx/partx.c b/partx/partx.c
index 0c46af6eb..f19b91928 100644
--- a/partx/partx.c
+++ b/partx/partx.c
@@ -33,6 +33,7 @@
#include "sysfs.h"
#include "loopdev.h"
#include "at.h"
+#include "closestream.h"
/* this is the default upper limit, could be modified by --nr */
#define SLICES_MAX 256
@@ -667,6 +668,7 @@ int main(int argc, char **argv)
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
while ((c = getopt_long(argc, argv,
"abdglrsvn:t:o:PhV", long_opts, NULL)) != -1) {