summaryrefslogtreecommitdiff
path: root/m4/nocrash.m4
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2016-05-18 00:05:53 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2016-05-18 00:49:28 -0700
commit6f5db0255cab2e17ab53ee68f6dc2f4d75978d80 (patch)
tree91149c57f1be7e0afef8d5d4d6ddff696d1257e5 /m4/nocrash.m4
parent631ca55c6decccca2dc0961dc28962819eacc35b (diff)
downloademacs-6f5db0255cab2e17ab53ee68f6dc2f4d75978d80.tar.gz
Sync from gnulib
This incorporates: 2016-05-17 manywarnings: update for GCC 6.1 2016-05-13 intdiv0, memmem, nocrash, strcasestr, strstr: no exit * m4/manywarnings.m4, m4/nocrash.m4: Copy from gnulib.
Diffstat (limited to 'm4/nocrash.m4')
-rw-r--r--m4/nocrash.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/nocrash.m4 b/m4/nocrash.m4
index ecc55c6172d..d8dd8f13a12 100644
--- a/m4/nocrash.m4
+++ b/m4/nocrash.m4
@@ -110,11 +110,12 @@ nocrash_init (void)
#else
/* Avoid a crash on POSIX systems. */
#include <signal.h>
+#include <unistd.h>
/* A POSIX signal handler. */
static void
exception_handler (int sig)
{
- exit (1);
+ _exit (1);
}
static void
nocrash_init (void)