]> 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>
Wed, 20 Nov 2024 07:51:09 +0000 (08:51 +0100)
* lib/c-stack.c: Undefine abort.

ChangeLog
lib/c-stack.c

index 80e8b85760fe3061a85c85a419c48e2d0a8975c1..79e240c1fc7cbcfbec1fd9112f22db85dd4aee9b 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-20  Bruno Haible  <bruno@clisp.org>
 
        tests: Silence some more -Wdeprecated-declarations warnings.
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.