diff options
Diffstat (limited to 'src/exit')
-rw-r--r-- | src/exit/exit.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/exit/exit.c b/src/exit/exit.c index 03c46ca5..e4aeaf15 100644 --- a/src/exit/exit.c +++ b/src/exit/exit.c @@ -9,9 +9,10 @@ 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) { @@ -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(;;); |