diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-27 20:32:24 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-27 20:32:24 +0300 |
commit | 70f73831de55d63263839d5fa6ac44dbc2c38491 (patch) | |
tree | c9cc008a1ca0747ce4e679e21f5f46b1d3bd1af7 /main.c | |
parent | c5d46e712f917385b2291c6acb3fc323b4b8d16c (diff) | |
parent | 5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b (diff) | |
download | egawk-70f73831de55d63263839d5fa6ac44dbc2c38491.tar.gz egawk-70f73831de55d63263839d5fa6ac44dbc2c38491.tar.bz2 egawk-70f73831de55d63263839d5fa6ac44dbc2c38491.zip |
Merge branch 'master' into feature/api-parser
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -633,7 +633,10 @@ By default it reads standard input and writes standard output.\n\n"), fp); warning(_("error writing standard output (%s)"), strerror(errno)); else if (fp == stderr) warning(_("error writing standard error (%s)"), strerror(errno)); - } + } else if (errno == SIGPIPE) + die_via_sigpipe(); + + // some other problem than SIGPIPE exit(EXIT_FAILURE); } |