summaryrefslogtreecommitdiff
path: root/src/tee.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tee.c')
-rw-r--r--src/tee.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tee.c b/src/tee.c
index d8ae6a4a2..9b47c0dc4 100644
--- a/src/tee.c
+++ b/src/tee.c
@@ -23,6 +23,7 @@
#include "system.h"
#include "argmatch.h"
+#include "die.h"
#include "error.h"
#include "fadvise.h"
#include "stdio--.h"
@@ -170,7 +171,7 @@ main (int argc, char **argv)
ok = tee_files (argc - optind, &argv[optind]);
if (close (STDIN_FILENO) != 0)
- error (EXIT_FAILURE, errno, "%s", _("standard input"));
+ die (EXIT_FAILURE, errno, "%s", _("standard input"));
return ok ? EXIT_SUCCESS : EXIT_FAILURE;
}