diff options
| author | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 18:24:54 +0100 |
|---|---|---|
| committer | Kacper <kacper@mail.openlinux.dev> | 2025-12-15 18:24:54 +0100 |
| commit | 69e6fe89fa9baafeca3e3515bb50897cd8ee7c35 (patch) | |
| tree | 489046ce167b8b20d205f87f4ae1f4b680c19b43 /lib/libc/stdlib/abort.c | |
| parent | 0d5bffe9d2caadc1215c875e560c52bca5161c54 (diff) | |
Add getauxval and cleanup libc startup
Diffstat (limited to 'lib/libc/stdlib/abort.c')
| -rw-r--r-- | lib/libc/stdlib/abort.c | 5 |
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); |
