diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-20 21:26:06 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-20 21:26:06 +0200 |
commit | 34f44e49e257d48eb1db3bc4d78c2b9ceb331717 (patch) | |
tree | b247bd82ba77ac5a6e5466b231fa97141ef6196d /main.c | |
parent | d3d3f38ef66954d54fa687d49872ed968c391a3b (diff) | |
parent | efc7e96c876ccf3b83ab3249eca852a0292ff943 (diff) | |
download | egawk-34f44e49e257d48eb1db3bc4d78c2b9ceb331717.tar.gz egawk-34f44e49e257d48eb1db3bc4d78c2b9ceb331717.tar.bz2 egawk-34f44e49e257d48eb1db3bc4d78c2b9ceb331717.zip |
Merge branch 'master' into feature/stringfix
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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) |