memmem/strcasestr.m4: don't call exit() from signal handler

This commit is contained in:
Nikos Mavrogiannopoulos
2016-05-13 11:14:55 +02:00
parent cb01bed65e
commit f08b143398
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ AC_DEFUN([gl_FUNC_MEMMEM],
#include <string.h> /* for memmem */
#include <stdlib.h> /* for malloc */
#include <unistd.h> /* for alarm */
static void quit (int sig) { exit (sig + 128); }
static void quit (int sig) { _exit (sig + 128); }
]], [[
int result = 0;
size_t m = 1000000;

View File

@@ -80,7 +80,7 @@ AC_DEFUN([gl_FUNC_STRCASESTR],
#include <string.h> /* for strcasestr */
#include <stdlib.h> /* for malloc */
#include <unistd.h> /* for alarm */
static void quit (int sig) { exit (sig + 128); }
static void quit (int sig) { _exit (sig + 128); }
]], [[
int result = 0;
size_t m = 1000000;