diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2013-11-01 11:05:30 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2013-11-01 11:05:30 +0200 |
commit | b3bb8a2bac657b6095e7a63c385c334e4329629c (patch) | |
tree | a27af8ab93435ba5a4e272489adcce32fddbd018 /builtin.c | |
parent | 8d6b9ebe7983bd45dc28819c40e2acdafcde2a70 (diff) | |
parent | 62c42c359af9b08180d25d3075a1b8ca5d52dee6 (diff) | |
download | egawk-b3bb8a2bac657b6095e7a63c385c334e4329629c.tar.gz egawk-b3bb8a2bac657b6095e7a63c385c334e4329629c.tar.bz2 egawk-b3bb8a2bac657b6095e7a63c385c334e4329629c.zip |
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -125,6 +125,11 @@ efwrite(const void *ptr, return; wrerror: + /* die silently on EPIPE to stdout */ + if (fp == stdout && errno == EPIPE) + gawk_exit(EXIT_FATAL); + + /* otherwise die verbosely */ fatal(_("%s to \"%s\" failed (%s)"), from, rp ? rp->value : _("standard output"), errno ? strerror(errno) : _("reason unknown")); |