diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-07 14:56:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-07 14:56:12 +0000 |
commit | 7942b60d4751f8b482684b2ed9e7a3bd344ea55e (patch) | |
tree | ff96b3cbb2f0c1dfa2f8513f01eec48ed58bb648 /src | |
parent | c6bd79ad34d826c3f6b3963ea972d633fa98b34c (diff) | |
download | coreutils-7942b60d4751f8b482684b2ed9e7a3bd344ea55e.tar.xz |
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src')
-rw-r--r-- | src/pinky.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pinky.c b/src/pinky.c index 42150929d..ae36e0ff9 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) { |