summaryrefslogtreecommitdiff
path: root/src/exit/abort.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exit/abort.c')
-rw-r--r--src/exit/abort.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/exit/abort.c b/src/exit/abort.c
new file mode 100644
index 00000000..9a1c3d40
--- /dev/null
+++ b/src/exit/abort.c
@@ -0,0 +1,8 @@
+#include <stdlib.h>
+#include <signal.h>
+
+void abort(void)
+{
+ raise(SIGABRT);
+ for (;;);
+}