Skip to content

Commit

Permalink
(_IO_cleanup): Do not use locking when flushing the buffers. Some thr…
Browse files Browse the repository at this point in the history
…ead might be using a stream.
  • Loading branch information
Ulrich Drepper committed Feb 9, 2004
1 parent 8ce776d commit 64f0102
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libio/genops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 64f0102

Please sign in to comment.