diff options
author | Jim Meyering <jim@meyering.net> | 2000-05-07 14:46:33 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-05-07 14:46:33 +0000 |
commit | 72bdac727100dd893ad1041cb9a06b48fa211058 (patch) | |
tree | 8eaf75b31d328c20dcc50e79e2b124c552a0ee62 /src/uname.c | |
parent | f1013a15356cd77518af435233564f0ba7b7c099 (diff) | |
download | coreutils-72bdac727100dd893ad1041cb9a06b48fa211058.tar.xz |
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src/uname.c')
-rw-r--r-- | src/uname.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/uname.c b/src/uname.c index f199ad065..a6ffe508b 100644 --- a/src/uname.c +++ b/src/uname.c @@ -1,5 +1,5 @@ /* uname -- print system information - 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 @@ -40,6 +40,7 @@ #include "system.h" #include "error.h" +#include "closeout.h" /* The official name of this program (e.g., no `g' prefix). */ #define PROGRAM_NAME "uname" @@ -124,6 +125,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + toprint = 0; while ((c = getopt_long (argc, argv, "snrvpma", long_options, NULL)) != -1) |