summaryrefslogtreecommitdiffstats
path: root/src/xtokid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xtokid.c')
-rw-r--r--src/xtokid.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/xtokid.c b/src/xtokid.c
index 5dc97fe..3ee8e92 100644
--- a/src/xtokid.c
+++ b/src/xtokid.c
@@ -26,6 +26,7 @@
#include <pathmax.h>
#include <error.h>
+#include "closeout.h"
#include "xnls.h"
#include "scanners.h"
#include "idfile.h"
@@ -102,6 +103,8 @@ main (int argc, char **argv)
textdomain (PACKAGE);
#endif
+ atexit (close_stdout);
+
for (;;)
{
int optc = getopt_long (argc, argv, "i:x:l:m:d:p:",