summaryrefslogtreecommitdiff
path: root/src/nice.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-07 14:55:15 +0000
committerJim Meyering <jim@meyering.net>2000-05-07 14:55:15 +0000
commitc6bd79ad34d826c3f6b3963ea972d633fa98b34c (patch)
tree0bd8b4c14f2fe2d35c74709a727f23274c6c5c01 /src/nice.c
parent52150ef51d015957dbd713886a962011c21b7ff2 (diff)
downloadcoreutils-c6bd79ad34d826c3f6b3963ea972d633fa98b34c.tar.xz
Include "closeout.h".
(main): Call atexit with close_stdout.
Diffstat (limited to 'src/nice.c')
-rw-r--r--src/nice.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nice.c b/src/nice.c
index 3bca81e48..1fbcd9046 100644
--- a/src/nice.c
+++ b/src/nice.c
@@ -1,5 +1,5 @@
/* nice -- run a program with modified scheduling priority
- Copyright (C) 1990-1999 Free Software Foundation, Inc.
+ Copyright (C) 1990-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
@@ -33,6 +33,7 @@
#include "error.h"
#include "long-options.h"
#include "xstrtol.h"
+#include "closeout.h"
/* The official name of this program (e.g., no `g' prefix). */
#define PROGRAM_NAME "nice"
@@ -91,6 +92,8 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ atexit (close_stdout);
+
parse_long_options (argc, argv, PROGRAM_NAME, GNU_PACKAGE, VERSION,
AUTHORS, usage);