summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/true.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/true.c b/src/true.c
index 219f98c86..8a1c4f920 100644
--- a/src/true.c
+++ b/src/true.c
@@ -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"))