aboutsummaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2017-03-20 21:23:32 +0200
committerArnold D. Robbins <arnold@skeeve.com>2017-03-20 21:23:32 +0200
commit4dbaf72917b7c3e1592ccd2d4a787bb8b7a9fe54 (patch)
tree25e3ee3767b5ac816f68667b3dbe8184639141a6 /main.c
parent65ed9b66cada11364e9b67ea1cd178b259cd0e36 (diff)
parentefc7e96c876ccf3b83ab3249eca852a0292ff943 (diff)
downloadegawk-4dbaf72917b7c3e1592ccd2d4a787bb8b7a9fe54.tar.gz
egawk-4dbaf72917b7c3e1592ccd2d4a787bb8b7a9fe54.tar.bz2
egawk-4dbaf72917b7c3e1592ccd2d4a787bb8b7a9fe54.zip
Merge branch 'master' into feature/api-mpfr
Diffstat (limited to 'main.c')
-rw-r--r--main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/main.c b/main.c
index 56482f51..4f578d3e 100644
--- a/main.c
+++ b/main.c
@@ -255,7 +255,7 @@ main(int argc, char **argv)
#ifdef SIGBUS
(void) signal(SIGBUS, catchsig);
#endif
-#ifdef SIGPIPE
+
/*
* Ignore SIGPIPE so that writes to pipes that fail don't
* kill the process but instead return -1 and set errno.
@@ -269,8 +269,7 @@ main(int argc, char **argv)
* should not give us "broken pipe" messages --- mainly because
* it did not do so in the past and people would complain.
*/
- signal(SIGPIPE, SIG_IGN);
-#endif
+ ignore_sigpipe();
(void) sigsegv_install_handler(catchsegv);
#define STACK_SIZE (16*1024)