summaryrefslogtreecommitdiffstats
path: root/sys-utils/flock.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys-utils/flock.c')
-rw-r--r--sys-utils/flock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys-utils/flock.c b/sys-utils/flock.c
index 50cea1392..1db28a294 100644
--- a/sys-utils/flock.c
+++ b/sys-utils/flock.c
@@ -42,6 +42,7 @@
#include "c.h"
#include "nls.h"
#include "strutils.h"
+#include "closestream.h"
static void __attribute__((__noreturn__)) usage(int ex)
{
@@ -161,6 +162,7 @@ int main(int argc, char *argv[])
setlocale(LC_ALL, "");
bindtextdomain(PACKAGE, LOCALEDIR);
textdomain(PACKAGE);
+ atexit(close_stdout);
if (argc < 2)
usage(EX_USAGE);