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