diff options
Diffstat (limited to 'src/true.c')
-rw-r--r-- | src/true.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/true.c b/src/true.c index d28bec34b..53c8f777f 100644 --- a/src/true.c +++ b/src/true.c @@ -26,7 +26,6 @@ These option names may not be abbreviated.\n\ ") , program_name, program_name); puts (_("\nReport bugs to <bug-sh-utils@gnu.org>.")); - close_stdout (); exit (status); } @@ -38,6 +37,8 @@ main (int argc, char **argv) bindtextdomain (PACKAGE, LOCALEDIR); textdomain (PACKAGE); + atexit (close_stdout); + /* Recognize --help or --version only if it's the only command-line argument and if POSIXLY_CORRECT is not set. */ if (argc == 2 && getenv ("POSIXLY_CORRECT") == NULL) |