diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-07 14:54:43 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-07 14:54:43 +0000 |
commit | 52150ef51d015957dbd713886a962011c21b7ff2 (patch) | |
tree | 8019d4193319e49096b8e1922db5c07120b9c97c /src | |
parent | 071e5e3b2511ccd17474c8a42abd492b3e0e6999 (diff) | |
download | coreutils-52150ef51d015957dbd713886a962011c21b7ff2.tar.xz |
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src')
-rw-r--r-- | src/id.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -1,5 +1,5 @@ /* id -- print real and effective UIDs and GIDs - Copyright (C) 1989-1999 Free Software Foundation, Inc. + Copyright (C) 1989-2000 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -28,6 +28,7 @@ #include "system.h" #include "error.h" +#include "closeout.h" /* The official name of this program (e.g., no `g' prefix). */ #define PROGRAM_NAME "id" @@ -125,6 +126,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + while ((optc = getopt_long (argc, argv, "agnruG", longopts, NULL)) != -1) { switch (optc) |