This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: _IO_lock_unlock (fwd)
- To: Robert Bernecky <bernecky at acm dot org>
- Subject: Re: _IO_lock_unlock (fwd)
- From: Andreas Jaeger <aj at suse dot de>
- Date: Tue, 31 Jul 2001 08:43:27 +0200
- Cc: <libc-alpha at sources dot redhat dot com>,"John Gilmore (Secure Pointers)" <secptr at toad dot com>,Greg McGary <greg at mcgary dot org>
- References: <Pine.LNX.4.31.0107301203410.1030-100000@cobra.localhost>
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