diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-27 20:32:41 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-03-27 20:32:41 +0300 |
commit | 71649092611573639e39f95b7ca148a98b759242 (patch) | |
tree | bd348b16ed9845ea28d350a478602a51e7899273 /awk.h | |
parent | 3ec01878b6a4a55e4e0cfe635c1f7bd97d740b80 (diff) | |
parent | 5b7042ea0a68d41c4fbd0d6228f77975ebf8c38b (diff) | |
download | egawk-71649092611573639e39f95b7ca148a98b759242.tar.gz egawk-71649092611573639e39f95b7ca148a98b759242.tar.bz2 egawk-71649092611573639e39f95b7ca148a98b759242.zip |
Merge branch 'master' into feature/fix-comments
Diffstat (limited to 'awk.h')
-rw-r--r-- | awk.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -1966,7 +1966,9 @@ erealloc_real(void *ptr, size_t count, const char *where, const char *var, const #ifdef SIGPIPE #define ignore_sigpipe() signal(SIGPIPE, SIG_IGN) #define set_sigpipe_to_default() signal(SIGPIPE, SIG_DFL) +#define die_via_sigpipe() (signal(SIGPIPE, SIG_DFL), kill(getpid(), SIGPIPE)) #else #define ignore_sigpipe() #define set_sigpipe_to_default() +#define die_via_sigpipe() exit(EXIT_FATAL) #endif |