Re: Python throws error when closing /dev/urandom

2009-10-23 Thread Corinna Vinschen
On Oct 22 21:11, Andy Koppe wrote: > > Reproduced the issue with this C test: > > > > #include > > #include > > > > int main(void) { > >  FILE *f = fopen("/dev/urandom", "r"); > >  if (!f) { > >    puts("fopen failed"); > >    return 1; > >  } > >  char buf[8]; > >  printf("read %i bytes\n", frea

Re: Python throws error when closing /dev/urandom

2009-10-22 Thread Andy Koppe
> 2009/10/22 Topher Cawlfield >> I'm not sure if this is the right place to post such problems, but I ran into >> this problem when trying to use the paramiko library with python 2.5.2 in >> Cygwin. >> >> Ultimately the problem is that an IOError is generated when opening >> /dev/urandom, reading

Re: Python throws error when closing /dev/urandom

2009-10-22 Thread Andy Koppe
2009/10/22 Topher Cawlfield > I'm not sure if this is the right place to post such problems, but I ran into > this problem when trying to use the paramiko library with python 2.5.2 in > Cygwin. > > Ultimately the problem is that an IOError is generated when opening > /dev/urandom, reading some byt

Python throws error when closing /dev/urandom

2009-10-22 Thread Topher Cawlfield
Hi, I'm not sure if this is the right place to post such problems, but I ran into this problem when trying to use the paramiko library with python 2.5.2 in Cygwin. Ultimately the problem is that an IOError is generated when opening /dev/urandom, reading some bytes from it (doesn't seem to matter