aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-03-27 20:30:14 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-03-27 20:30:14 +0300
commit5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b (patch)
treeffd5fa8aecdcc0ef3c6c5043c10b0335d4e59435 /io.c
parent45099c6ece4f4e91f0d525d10a6d4d162d30e6e4 (diff)
downloadegawk-5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b.tar.gz
egawk-5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b.tar.bz2
egawk-5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b.zip
Die with SIGPIPE when EPIPE happens on stdout.
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
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")