From e3c7892252f5a20589d82c7387c61337b3542e13 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 17 Oct 2000 18:12:30 +0000 Subject: Bypass problem with signals for the moment... --- Rules.mak | 7 +++++++ libc/stdlib/abort.c | 2 ++ 2 files changed, 9 insertions(+) diff --git a/Rules.mak b/Rules.mak index 7191a56b3..ca9305969 100644 --- a/Rules.mak +++ b/Rules.mak @@ -47,6 +47,9 @@ MALLOC = malloc # lfs. This surrently does nothing... DOLFS = false +# Enable stuff that is broken (to fix it of course....) +DO_FIXME_STUFF = true + # Disable this if your CPU has a memory management unit (MMU) HAS_MMU = true @@ -92,6 +95,10 @@ ifneq ($(HAS_FLOATS),true) CFLAGS += -D__HAS_NO_FLOATS__ endif +ifneq ($(DO_FIXME_STUFF),true) + CFLAGS += -DFIXME +endif + # Use '-ffunction-sections -fdata-sections' and '--gc-sections' if they work diff --git a/libc/stdlib/abort.c b/libc/stdlib/abort.c index 11448bfb9..5fb8be599 100644 --- a/libc/stdlib/abort.c +++ b/libc/stdlib/abort.c @@ -32,11 +32,13 @@ extern void _exit __P((int __status)) __attribute__ ((__noreturn__)); /* Cause an abnormal program termination with core-dump. */ void abort(void) { +#if FIXME sigset_t sigset; if (sigemptyset(&sigset) == 0 && sigaddset(&sigset, SIGABRT) == 0) { sigprocmask(SIG_UNBLOCK, &sigset, (sigset_t *) NULL); } +#endif if (__cleanup) __cleanup(); -- cgit v1.2.3