aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-03-27 20:32:24 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-03-27 20:32:24 +0300
commit70f73831de55d63263839d5fa6ac44dbc2c38491 (patch)
treec9cc008a1ca0747ce4e679e21f5f46b1d3bd1af7 /builtin.c
parentc5d46e712f917385b2291c6acb3fc323b4b8d16c (diff)
parent5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b (diff)
downloadegawk-70f73831de55d63263839d5fa6ac44dbc2c38491.tar.gz
egawk-70f73831de55d63263839d5fa6ac44dbc2c38491.tar.bz2
egawk-70f73831de55d63263839d5fa6ac44dbc2c38491.zip
Merge branch 'master' into feature/api-parser
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin.c b/builtin.c
index 0f2c62f8..e2143b36 100644
--- a/builtin.c
+++ b/builtin.c
@@ -129,9 +129,9 @@ wrerror:
if (errno == 0 || errno == EINVAL)
w32_maybe_set_errno();
#endif
- /* die silently on EPIPE to stdout */
+ /* for stdout, die with a real SIGPIPE, like other awks */
if (fp == stdout && errno == EPIPE)
- gawk_exit(EXIT_SUCCESS); // a la SIGPIPE
+ die_via_sigpipe();
/* otherwise die verbosely */
if ((rp != NULL) ? is_non_fatal_redirect(rp->value, strlen(rp->value)) : is_non_fatal_std(fp))