mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-25 20:21:07 +00:00
(_IO_cleanup): Do not use locking when flushing the buffers. Some thread might be using a stream.
This commit is contained in:
parent
8ce776d3ca
commit
64f0102083
@ -942,7 +942,9 @@ _IO_unbuffer_write ()
|
||||
int
|
||||
_IO_cleanup ()
|
||||
{
|
||||
int result = INTUSE(_IO_flush_all) ();
|
||||
/* We do *not* want locking. Some threads might use streams but
|
||||
that is there problem, we flush them underneath them. */
|
||||
int result = _IO_flush_all_lockp (0);
|
||||
|
||||
/* We currently don't have a reliable mechanism for making sure that
|
||||
C++ static destructors are executed in the correct order.
|
||||
|
Loading…
Reference in New Issue
Block a user