This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author socketpair
Recipients ferringb, gregory.p.smith, jyasskin, loewis, nadeem.vawda, neologix, pitrou, python-dev, rosslagerwall, s7v7nislands, socketpair, vstinner
Date 2014-03-19.14:22:56
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <[email protected]>
In-reply-to
Content
Calling getdents()/readdir64() repeatedly while closing descriptors provides unexpected behaviour. Reading directory while it modified is not safe by default. For example: http://en.it-usenet.org/thread/18514/15719/. 

So, we should re-open directory if we received full array of structures. I don't know if just lseek(dirfd, 0) sufficies.

Please reopen bug, as Linux behaviour of stable reading /proc/<pid>/fd may be broken in future without any error at python side (!) (typically, second call returns empty list if dir was modified)
History
Date User Action Args
2014-03-19 14:22:56socketpairsetrecipients: + socketpair, loewis, gregory.p.smith, pitrou, vstinner, ferringb, jyasskin, nadeem.vawda, s7v7nislands, neologix, rosslagerwall, python-dev
2014-03-19 14:22:56socketpairsetmessageid: <[email protected]>
2014-03-19 14:22:56socketpairlinkissue8052 messages
2014-03-19 14:22:56socketpaircreate