glibc: (_IO_cleanup): Do not use locking when flushing ...
the buffers. Some thread might be using a stream.
This commit is contained in:
committed by
Jérôme Duval
parent
16e393a0c5
commit
d2bd05420a
@@ -941,7 +941,9 @@ _IO_unbuffer_write ()
|
|||||||
int
|
int
|
||||||
_IO_cleanup ()
|
_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
|
/* We currently don't have a reliable mechanism for making sure that
|
||||||
C++ static destructors are executed in the correct order.
|
C++ static destructors are executed in the correct order.
|
||||||
|
|||||||
Reference in New Issue
Block a user