[Python-Dev] os.urandom uses closed FD (sf 1177468)
Luis P Caamano
lcaamano at gmail.com
Tue Apr 19 19:10:03 CEST 2005
We're running into the problem described in bug 1177468, where urandom tries
to
use a cached file descriptor that was closed by a daemonizing function. A
quick
fix/workaround is to have os.urandom open /dev/urandom everytime it gets
called
instead of using the a cached fd.
Would that create any problems other that those related to the additional
system
call overhead?
BTW, I added the traceback we're getting as comment to the bug.
Thanks
PS
This is with Python 2.4.1
--
Luis P Caamano
Atlanta, GA USA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-dev/attachments/20050419/3d0e7848/attachment.htm
More information about the Python-Dev
mailing list