From: Jim Meyering Date: Sun, 7 May 2000 14:56:12 +0000 (+0000) Subject: Include "closeout.h". X-Git-Tag: SH-UTILS-2_0h~10 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=7942b60d4751f8b482684b2ed9e7a3bd344ea55e;p=thirdparty%2Fcoreutils.git Include "closeout.h". (main): Call atexit with close_stdout. --- diff --git a/src/pinky.c b/src/pinky.c index 42150929d4..ae36e0ff9d 100644 --- a/src/pinky.c +++ b/src/pinky.c @@ -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) {