| author | Rich Felker <dalias@aerifal.cx> | 2024年10月10日 17:11:48 -0400 |
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2024年10月10日 17:11:48 -0400 |
| commit | 43664364c81a2f5fc0380ace433addbb0e38dea3 (patch) | |
| tree | b36d59a4eefd13b2e33e921913e561f6405a84d0 /src | |
| parent | 6d8000d3c6e1026415f8398f540f5f3783622538 (diff) | |
| download | musl-43664364c81a2f5fc0380ace433addbb0e38dea3.tar.gz | |
| -rw-r--r-- | src/exit/exit.c | 2 |
diff --git a/src/exit/exit.c b/src/exit/exit.c index ca11b9ad..17b33cc6 100644 --- a/src/exit/exit.c +++ b/src/exit/exit.c @@ -38,7 +38,7 @@ _Noreturn void exit(int code) int tid = __pthread_self()->tid; int prev = a_cas(exit_lock, 0, tid); if (prev == tid) a_crash(); - else if (prev) for (;;) __syscall(SYS_pause); + else if (prev) for (;;) __sys_pause(); __funcs_on_exit(); __libc_exit_fini(); |