Hi Laurence,
On Wed, Jun 26, 2013 at 12:03 AM, Laurence Tratt wrote:
>> Sorry, I don't follow you. As far as I know the Linux man page is not
>> clear about what occurs to errno if readdir() doesn't return NULL...
>
> Exactly :)
> (...)
> This all seems a big mess to me, but since I changed my c
On Tue, Jun 25, 2013 at 11:34:03PM +0200, Armin Rigo wrote:
> Sorry, I don't follow you. As far as I know the Linux man page is not
> clear about what occurs to errno if readdir() doesn't return NULL...
Exactly :) My reading of it is that readdir returns: NULL and sets errno if
an error occurred
Hi Laurence,
On Tue, Jun 25, 2013 at 3:24 PM, Laurence Tratt wrote:
> The point that eventually became clear to me is that returning NULL and
> setting errno are not necessarily connected, which was the original mistake I
> made. errors can happen (and errno set) even if readdir hasn't hit the en
On Tue, Jun 25, 2013 at 01:51:48PM +0200, Armin Rigo wrote:
> According to these mails, the issue you've hit is different: what occurs to
> errno if readdir() returns NULL. This is indeed strange but documented.
> But what occurs to errno if readdir() does *not* return NULL? I thought
> that err
Hi Laurence,
On Tue, Jun 25, 2013 at 11:14 AM, Laurence Tratt wrote:
>> Shooting in the dark, but one possible reading of the man page shows
>> that when readdir() returns a non-null pointer, the value of errno
>> might be randomly modified.
>
> Yes, this is true and bit me in a different context
On Mon, Jun 24, 2013 at 06:05:39PM +0200, Armin Rigo wrote:
> Shooting in the dark, but one possible reading of the man page shows
> that when readdir() returns a non-null pointer, the value of errno
> might be randomly modified.
Yes, this is true and bit me in a different context just over a yea
Hi Vasily,
On Mon, Jun 24, 2013 at 2:28 PM, Vasily Evseenko wrote:
> 13:01:26,595 INFO - for entry in os.listdir(path_item):
> 13:01:26,595 INFO - OSError: [Errno 11] Resource temporarily
> unavailable: '/usr/pypy-2.0/lib-python/2.7'
Shooting in the dark, but one possible reading of the man pa