diff options
| author | android-build-team Robot <android-build-team-robot@google.com> | 2019-05-01 03:16:45 +0000 |
|---|---|---|
| committer | android-build-team Robot <android-build-team-robot@google.com> | 2019-05-01 03:16:45 +0000 |
| commit | d1b997f3e597f42576f77758b76c2bffb9acb866 (patch) | |
| tree | 39038ec25d6803c3c26a1a784da80ccb3c17e177 | |
| parent | b8f5d8d422dbb21ff9002cbbcd72e2ae272a9a0d (diff) | |
| parent | 8dc7da51b537e301bf6ee05e7fb56e97df23a7d1 (diff) | |
Snap for 5519018 from 8dc7da51b537e301bf6ee05e7fb56e97df23a7d1 to qt-release
Change-Id: Ib5143067b32b099bb2e5e84fc7dd160381453dff
| -rw-r--r-- | libc/stdlib/atexit.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/stdlib/atexit.c b/libc/stdlib/atexit.c index bd6ac3db0..692e0c0fc 100644 --- a/libc/stdlib/atexit.c +++ b/libc/stdlib/atexit.c @@ -186,7 +186,10 @@ restart: } _ATEXIT_UNLOCK(); - fflush(NULL); + /* If called via exit(), flush output of all open files. */ + if (dso == NULL) { + fflush(NULL); + } /* BEGIN android-changed: call __unregister_atfork if dso is not null */ if (dso != NULL) { |
