summaryrefslogtreecommitdiff
path: root/libc/malloc_debug/malloc_debug.cpp
diff options
context:
space:
mode:
authorRyan Prichard <rprichard@google.com>2019-04-24 14:14:47 -0700
committerRyan Prichard <rprichard@google.com>2019-04-25 16:38:31 -0700
commitc5d8c6c6e47a7f5fd0c3db2a48004be1030cf753 (patch)
tree4fb57f71a3cec9fab651e99f9c6f8073a3ad3353 /libc/malloc_debug/malloc_debug.cpp
parent8c3140a6123137700a22ec1ab1d4a38318b5571c (diff)
__cxa_finalize: skip fflush call on dlclose
In __cxa_finalize, only call fflush(NULL) when the program is exiting, not when a library is unloaded with dlclose. This change restores behavior from 2015. Flushing output is needed when the program exits, but flushing everything is hazardous at other times because it can block -- fflush(NULL) locks every file, so it also blocks on read operations. Bug: http://b/130655235 Test: manual Change-Id: I2f5ecffa6724bfd98a93d145ab5313c793c01ae6
Diffstat (limited to 'libc/malloc_debug/malloc_debug.cpp')
0 files changed, 0 insertions, 0 deletions