summaryrefslogtreecommitdiffstats
path: root/sys-utils/ldattach.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/ldattach.c')
-rw-r--r--sys-utils/ldattach.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/ldattach.c b/sys-utils/ldattach.c
index d331413fd..2917d4e83 100644
--- a/sys-utils/ldattach.c
+++ b/sys-utils/ldattach.c
@@ -27,6 +27,7 @@
#include "c.h"
#include "nls.h"
#include "strutils.h"
+#include "closestream.h"
#ifndef N_GIGASET_M101
# define N_GIGASET_M101 16
@@ -234,6 +235,7 @@ int main(int argc, char **argv)
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
/* parse options */
progname = program_invocation_short_name;