This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: _IO_lock_unlock (fwd)


Robert Bernecky <bernecky@acm.org> writes:

> Can someone please let me know how this has been resolved?

You misunderstood me - it worked in 2000 but it has been broken in the
meantime.

I just checked it myself and committed the appended fix for this,

Andreas

2001-07-31  Andreas Jaeger  <aj@suse.de>

	* libio/genops.c (flush_cleanup): Guard list_all_lock to allow
	compilation without threads.

============================================================
Index: libio/genops.c
--- libio/genops.c	2001/07/24 04:16:33	1.48
+++ libio/genops.c	2001/07/31 06:41:24
@@ -48,7 +48,9 @@ flush_cleanup (void *not_used)
 {
   if (run_fp != NULL)
     _IO_funlockfile (run_fp);
+#ifdef _IO_MTSAFE_IO
   _IO_lock_unlock (list_all_lock);
+#endif
 }
 
 void
-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]