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