Freshen build/bootstrap/cocmd

See https://news.ycombinator.com/item?id=41055121
This commit is contained in:
Justine Tunney 2024-07-27 23:22:11 -07:00
parent 8621034d42
commit e18fe1e112
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
11 changed files with 15 additions and 18 deletions

View file

@ -128,8 +128,8 @@ wontreturn void pthread_exit(void *rc) {
// implementation called exit() with a zero argument at thread
// termination time." ──Quoth POSIX.1-2017
if (orphan) {
for (const uintptr_t *p = __fini_array_end; p > __fini_array_start;)
((void (*)(void))(*--p))();
for (int i = __fini_array_end - __fini_array_start; i--;)
((void (*)(void))__fini_array_start[i])();
_Exit(0);
}