X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Fexit%2Fexit.c;h=e4932b5b229a9708e23a6e409082562da58f11ab;hp=03c46ca541e6479f44bcee56fd828f347db615df;hb=2d0f495e7bbcc1b17bf118b939e347e2d771fa2f;hpb=ad5a332c750550adbd45f474e5936cae65b4fd5e diff --git a/src/exit/exit.c b/src/exit/exit.c index 03c46ca5..e4932b5b 100644 --- a/src/exit/exit.c +++ b/src/exit/exit.c @@ -9,11 +9,12 @@ static void dummy() { } -/* __towrite.c and atexit.c override these */ +/* __toread.c, __towrite.c, and atexit.c override these */ weak_alias(dummy, __funcs_on_exit); -weak_alias(dummy, __fflush_on_exit); +weak_alias(dummy, __flush_on_exit); +weak_alias(dummy, __seek_on_exit); -void exit(int code) +_Noreturn void exit(int code) { static int lock; @@ -23,7 +24,8 @@ void exit(int code) __funcs_on_exit(); if (libc.fini) libc.fini(); if (libc.ldso_fini) libc.ldso_fini(); - __fflush_on_exit(); + __flush_on_exit(); + __seek_on_exit(); _Exit(code); for(;;);