From 5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Mon, 27 Mar 2017 20:30:14 +0300 Subject: Die with SIGPIPE when EPIPE happens on stdout. --- io.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'io.c') diff --git a/io.c b/io.c index fa9225ce..b00f4db4 100644 --- a/io.c +++ b/io.c @@ -1400,7 +1400,7 @@ non_fatal_flush_std_file(FILE *fp) if (is_fatal) { if (errno == EPIPE) - exit(EXIT_SUCCESS); // simulate SIGPIPE + die_via_sigpipe(); else fatal(fp == stdout ? _("fflush: cannot flush standard output: %s") -- cgit v1.2.3