summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/main.c b/main.c
index 5536190..60d11ab 100644
--- a/main.c
+++ b/main.c
@@ -914,6 +914,10 @@ main (int argc, char **argv, char **envp)
}
#endif
+#ifdef HAVE_ATEXIT
+ atexit (close_stdout);
+#endif
+
/* Needed for OS/2 */
initialize_main(&argc, &argv);
@@ -2176,6 +2180,7 @@ main (int argc, char **argv, char **envp)
die (status);
}
+ /* NOTREACHED */
return 0;
}