diff options
Diffstat (limited to 'src/stdlib/abort.c')
-rw-r--r-- | src/stdlib/abort.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/stdlib/abort.c b/src/stdlib/abort.c index fb2578c8..cf968456 100644 --- a/src/stdlib/abort.c +++ b/src/stdlib/abort.c @@ -1,13 +1,13 @@ -#if 0 - #include <stdlib.h> -#include <sys/types.h> #include <signal.h> +#include "_safety.h" /** cause abnormal program termination **/ _Noreturn void abort(void) { + SIGNAL_SAFE(1); + for (;;) { raise(SIGABRT); } @@ -26,6 +26,3 @@ IMPLEMENTATION(whether temporary files are removed) IMPLEMENTATION(the value of unsuccessful termination returned to the host environment) STDC(1) */ - - -#endif |