svn commit: branches/uClibc-nptl/libc/misc/dirent
Mike Frysinger
vapier at gentoo.org
Thu May 15 00:13:37 UTC 2008
On Wednesday 05 December 2007, carmelo at uclibc.org wrote:
> Author: carmelo
> Date: 2007-12-05 09:25:08 -0800 (Wed, 05 Dec 2007)
> New Revision: 20626
>
> Log:
> Fix opendir problem when statically linked due to a missing
> initialization of the mutex field within DIR struct.
> When linked dynamically instead, __pthread_mutex_init will
> initialize the mutex itself. Without this fix, any call to
> readdir will stuck forever trying to acquire the mutex.
sorry, but i dont follow. we call __pthread_mutex_init() on the dd_lock
member of the dirent structure which should initialize the mutex just fine.
you cant assume that zeroing the structure is the same as initializing the
mutex. that is why we have these initializer functions in the first place.
are you suggesting that the __pthread_mutex_init() function is not doing its
job ?
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.busybox.net/pipermail/uclibc-cvs/attachments/20080514/badeb2fe/attachment-0002.pgp
More information about the uClibc-cvs
mailing list