summaryrefslogtreecommitdiff
path: root/src/env.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-07 14:51:49 +0000
committerJim Meyering <jim@meyering.net>2000-05-07 14:51:49 +0000
commitab241ac3bea8ceb561fc0cd2ceeb78448ca160b6 (patch)
tree135b75a9314095ec0bd75920ef31c97d24860270 /src/env.c
parentd3683509b3953beb014e540f6d6194658ede1dea (diff)
downloadcoreutils-ab241ac3bea8ceb561fc0cd2ceeb78448ca160b6.tar.xz
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src/env.c')
-rw-r--r--src/env.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/env.c b/src/env.c
index bd91e73be..c31f7cf05 100644
--- a/src/env.c
+++ b/src/env.c
@@ -1,5 +1,5 @@
/* env - run a program in a modified environment
- Copyright (C) 1986, 1991-1999 Free Software Foundation, Inc.
+ Copyright (C) 1986, 1991-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
@@ -85,6 +85,7 @@
#include "system.h"
#include "error.h"
+#include "closeout.h"
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "env"
@@ -145,6 +146,8 @@ main (register int argc, register char **argv, char **envp)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ atexit (close_stdout);
+
while ((optc = getopt_long (argc, argv, "+iu:", longopts, NULL)) != -1)
{
switch (optc)