mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-01 18:22:27 +00:00
Freshen build/bootstrap/cocmd
See https://news.ycombinator.com/item?id=41055121
This commit is contained in:
parent
8621034d42
commit
e18fe1e112
11 changed files with 15 additions and 18 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue