aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-03-27 20:33:07 +0300
committerArnold D. Robbins <arnold@skeeve.com>2017-03-27 20:33:07 +0300
commit484169d2d39248d5d2d026902fd45ee8067f8986 (patch)
tree7bb428b5f21b536ba6dd767efd762fca827dddf3 /main.c
parentc33f1c6537e0fbb1661ada8425e615b0316fad9c (diff)
parent5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b (diff)
downloadegawk-484169d2d39248d5d2d026902fd45ee8067f8986.tar.gz
egawk-484169d2d39248d5d2d026902fd45ee8067f8986.tar.bz2
egawk-484169d2d39248d5d2d026902fd45ee8067f8986.zip
Merge branch 'master' into feature/stringfix
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/main.c b/main.c
index 4f578d3e..73e63448 100644
--- a/main.c
+++ b/main.c
@@ -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);
}