[issue13517] readdir() in os.listdir not threadsafe on OSX 10.6.8
Thouis (Ray) Jones
report at bugs.python.org
Thu Dec 1 23:38:06 CET 2011
Thouis (Ray) Jones <thouis at gmail.com> added the comment:
> > It's also possible that readdir() is not reentrant with lstat()
> This doesn't make much sense to me.
Me either. I think what I was actually seeing was multiple calls to readdir() still occurring even after placing a mutex on os.listdir due to my wrapping of os.listdir in a timeout via a subthread, and mutexing the timeout-wrapped version. I will test this more carefully tomorrow.
I will also look into creating some C code to demonstrate the bug.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue13517>
_______________________________________
More information about the Python-bugs-list
mailing list