]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Include "closeout.h".
authorJim Meyering <jim@meyering.net>
Sun, 7 May 2000 14:56:12 +0000 (14:56 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 7 May 2000 14:56:12 +0000 (14:56 +0000)
(main): Call atexit with close_stdout.

src/pinky.c

index 42150929d4c7a5b489b0e3c59122d2932785d65d..ae36e0ff9dda0b4e763caf62d4e86a94d76c2966 100644 (file)
@@ -25,6 +25,7 @@
 #include "system.h"
 #include "error.h"
 #include "readutmp.h"
+#include "closeout.h"
 
 /* The official name of this program (e.g., no `g' prefix).  */
 #define PROGRAM_NAME "pinky"
@@ -497,6 +498,8 @@ main (int argc, char **argv)
   bindtextdomain (PACKAGE, LOCALEDIR);
   textdomain (PACKAGE);
 
+  atexit (close_stdout);
+
   while ((optc = getopt_long (argc, argv, "sfwiqbhlp", longopts, &longind))
         != -1)
     {