]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(_IO_cleanup): Do not use locking when flushing the buffers. Some thread might be...
authorUlrich Drepper <drepper@redhat.com>
Mon, 9 Feb 2004 20:08:44 +0000 (20:08 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 9 Feb 2004 20:08:44 +0000 (20:08 +0000)
libio/genops.c

index 58dac005d8cf306f3abf6b660fc641a2a8c3b972..5b65e76bea22c5e44073681122b1a29c713e5895 100644 (file)
@@ -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.