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

src/id.c

index ad070dc05c7af27cf47c417ba6dee16c819d3088..e574883188ad80b42e00e708f24eb384d911bc2b 100644 (file)
--- a/src/id.c
+++ b/src/id.c
@@ -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)