]> Savannah Git Hosting - gnulib.git/commitdiff
c-stack: Avoid a busy-looping test on macOS.
authorBruno Haible <bruno@clisp.org>
Wed, 20 Nov 2024 07:50:42 +0000 (08:50 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 1 Dec 2024 06:59:48 +0000 (07:59 +0100)
* lib/c-stack.c: Undefine abort.

ChangeLog
lib/c-stack.c

index 7ea28b4f95384cf0de7a939ba350999189e9c4e9..ec9d0afcfd03c6bb36e5db312c2931bbc9550936 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-11-20  Bruno Haible  <bruno@clisp.org>
+
+       c-stack: Avoid a busy-looping test on macOS.
+       * lib/c-stack.c: Undefine abort.
+
 2024-11-19  Pádraig Brady  <P@draigBrady.com>
 
        unicodeio: avoid iconv issues for most ASCII characters
index 0e14de94230dc6a6adbb2706f0d62352baa579ff..8db2417ab1684a6bd1b3d0e7b6aff686103c05cc 100644 (file)
 #include "gettext.h"
 #define _(msgid) gettext (msgid)
 
+/* Here we need the original abort() function.  (Printing a stack trace
+   from within a signal handler is not going to work in most cases anyway.)  */
+#undef abort
+
 #if HAVE_STACK_OVERFLOW_RECOVERY
 
 /* Storage for the alternate signal stack.