]> code.delx.au - gnu-emacs/blobdiff - src/sysdep.c
Merge from origin/emacs-25
[gnu-emacs] / src / sysdep.c
index a78c4c64c815bacc6ac966f0b49cdbb7d7bafe17..e73acec733e6fc800c48e79a352d58875a4a7c27 100644 (file)
@@ -1622,6 +1622,9 @@ static unsigned char sigsegv_stack[SIGSTKSZ];
 static bool
 stack_overflow (siginfo_t *siginfo)
 {
+  if (!attempt_stack_overflow_recovery)
+    return false;
+
   /* In theory, a more-accurate heuristic can be obtained by using
      GNU/Linux pthread_getattr_np along with POSIX pthread_attr_getstack
      and pthread_attr_getguardsize to find the location and size of the