summaryrefslogtreecommitdiffstats
path: root/src/lid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lid.c')
-rw-r--r--src/lid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lid.c b/src/lid.c
index d7c3770..2ea305c 100644
--- a/src/lid.c
+++ b/src/lid.c
@@ -38,6 +38,7 @@
#include <pathmax.h>
#include <error.h>
+#include "closeout.h"
#include "xnls.h"
#include "idfile.h"
#include "iduglobal.h"
@@ -304,6 +305,8 @@ main (int argc, char **argv)
textdomain (PACKAGE);
#endif
+ atexit (close_stdout);
+
for (;;)
{
int optc = getopt_long (argc, argv, "f:F:a:k:R:S:ilrwsxdo",