summaryrefslogtreecommitdiff
path: root/src/true.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/true.c')
-rw-r--r--src/true.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/true.c b/src/true.c
index 804141c0..8a1c4f92 100644
--- a/src/true.c
+++ b/src/true.c
@@ -1,5 +1,5 @@
/* Exit with a status code indicating success.
- Copyright (C) 1999-2013 Free Software Foundation, Inc.
+ Copyright (C) 1999-2014 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
@@ -64,6 +64,8 @@ main (int argc, char **argv)
bindtextdomain (PACKAGE, LOCALEDIR);
textdomain (PACKAGE);
+ /* Note true(1) will return EXIT_FAILURE in the
+ edge case where writes fail with GNU specific options. */
atexit (close_stdout);
if (STREQ (argv[1], "--help"))