summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2000-10-17 18:12:30 +0000
committerEric Andersen <andersen@codepoet.org>2000-10-17 18:12:30 +0000
commite3c7892252f5a20589d82c7387c61337b3542e13 (patch)
tree4cc5844ea40acb207271d933a9df1017c18f2b9e
parent2d872f2ee8729b78db98cb40a4f6f2337f5b6101 (diff)
Bypass problem with signals for the moment...
-rw-r--r--Rules.mak7
-rw-r--r--libc/stdlib/abort.c2
2 files changed, 9 insertions, 0 deletions
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();