Pārlūkot izejas kodu

Bypass problem with signals for the moment...

Eric Andersen 25 gadi atpakaļ
vecāks
revīzija
e3c7892252
2 mainītis faili ar 9 papildinājumiem un 0 dzēšanām
  1. 7 0
      Rules.mak
  2. 2 0
      libc/stdlib/abort.c

+ 7 - 0
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

+ 2 - 0
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();