Charles-François Natali <neolo...@free.fr> added the comment: And here's a post by Ulrich Drepper: http://udrepper.livejournal.com/18555.html
""" readdir_r is only needed if multiple threads are using the same directory stream. I have yet to see a program where this really is the case. In this toy example the stream (variable dir) is definitely not shared between different threads. Therefore the use of readdir is just fine. Should this matter? Yes, it should, since readdir_r has to copy the data in into the buffer provided by the user while readdir has the possibility to avoid that. """ So I'm even more confident that we should keep the current code. At least, before going any further (and complicating the code), I'd like to know whether this can be reproduced with a small C snippet. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue13517> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com