]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include "closeout.h".
authorJim Meyering <jim@meyering.net>
Sun, 7 May 2000 14:47:44 +0000 (14:47 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 7 May 2000 14:47:44 +0000 (14:47 +0000)
(usage): Call close_stdout just before exit.

src/true.c

index 1ea0d0d7aef13074f6e0b3fb901c61e06b8d7d2b..d28bec34b23af2d0938a6daff634ddd023b9a862 100644 (file)
@@ -3,6 +3,7 @@
 #include <sys/types.h>
 #include "system.h"
 #include "version-etc.h"
+#include "closeout.h"
 
 #define PROGRAM_NAME "true"
 #define AUTHORS "no one"
@@ -25,6 +26,7 @@ These option names may not be abbreviated.\n\
 ")
          , program_name, program_name);
   puts (_("\nReport bugs to <bug-sh-utils@gnu.org>."));
+  close_stdout ();
   exit (status);
 }