summaryrefslogtreecommitdiff
path: root/src/mkfifo.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mkfifo.c')
-rw-r--r--src/mkfifo.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mkfifo.c b/src/mkfifo.c
index fea25f330..d396a8269 100644
--- a/src/mkfifo.c
+++ b/src/mkfifo.c
@@ -65,7 +65,6 @@ Create named pipes (FIFOs) with the given NAMEs.\n\
--version output version information and exit\n\
"));
puts (_("\nReport bugs to <bug-fileutils@gnu.org>."));
- close_stdout ();
}
exit (status);
}
@@ -85,6 +84,8 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ atexit (close_stdout);
+
symbolic_mode = NULL;
#ifndef S_ISFIFO