summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/abort.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/abort.c')
-rw-r--r--lib/libc/stdlib/abort.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/stdlib/abort.c b/lib/libc/stdlib/abort.c
index 466329d1..70738ab3 100644
--- a/lib/libc/stdlib/abort.c
+++ b/lib/libc/stdlib/abort.c
@@ -16,12 +16,11 @@ _Noreturn void abort(void)
raise(SIGABRT);
- LIBC_LOCK(libc.lock.abort);
+ LIBC_LOCK(__libc.lock.abort);
sa.sa_handler = SIG_DFL;
__syscall(rt_sigaction, SIGABRT, &sa, 0, 64 / 8);
- __syscall(tkill, ((struct __thread_self *)thrd_current())->tid,
- SIGABRT);
+ __syscall(tkill, ((struct __thread_self *)thrd_current())->tid, SIGABRT);
// This point should never be reached
raise(SIGKILL);