diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-27 20:32:13 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-27 20:32:13 +0300 |
commit | 046500db53cd195de0c9aed330aae3190177851c (patch) | |
tree | b3a36d275bb06513d4e63bed9ff3b4afa25f71c1 /builtin.c | |
parent | 81e9acf445445dd0325c961b1db0c85c7d356771 (diff) | |
parent | 5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b (diff) | |
download | egawk-046500db53cd195de0c9aed330aae3190177851c.tar.gz egawk-046500db53cd195de0c9aed330aae3190177851c.tar.bz2 egawk-046500db53cd195de0c9aed330aae3190177851c.zip |
Merge branch 'master' into feature/api-mpfr
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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)) |