diff options
Diffstat (limited to 'libc/stdlib/atexit.c')
-rw-r--r-- | libc/stdlib/atexit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c index 692e0c0fc..0efb11854 100644 --- a/libc/stdlib/atexit.c +++ b/libc/stdlib/atexit.c @@ -188,7 +188,8 @@ restart: /* If called via exit(), flush output of all open files. */ if (dso == NULL) { - fflush(NULL); + extern void __libc_stdio_cleanup(void); + __libc_stdio_cleanup(); } /* BEGIN android-changed: call __unregister_atfork if dso is not null */ |