summaryrefslogtreecommitdiffstats
path: root/text-utils/tailf.c
diff options
context:
space:
mode:
Diffstat (limited to 'text-utils/tailf.c')
-rw-r--r--text-utils/tailf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/text-utils/tailf.c b/text-utils/tailf.c
index c8f3e91db..10589d8bc 100644
--- a/text-utils/tailf.c
+++ b/text-utils/tailf.c
@@ -45,6 +45,7 @@
#include "usleep.h"
#include "strutils.h"
#include "c.h"
+#include "closestream.h"
#define DEFAULT_LINES 10
@@ -240,6 +241,7 @@ int main(int argc, char **argv)
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
static const struct option longopts[] = {
{ "lines", required_argument, 0, 'n' },