[pypy-dev] Dead loop occurs when using python-daemon and multiprocessing together in PyPy 4.0.1
Vincent Legoll
vincent.legoll at gmail.com
Thu Dec 24 11:50:20 EST 2015
> :-) In the meantime I reverted the older checkin that caches the file
> descriptor, with a comment, in c6be1b27fa1d.
Are we really seeing a closed and reopened fd ?
And if that's the case it may even be intentional ;-)
because if we're only seeing a closed python file object, we could go
the simpler way:
- if not context[0]:
+ if (not context[0] or
+ type(context[0]) == file and context[0].closed):
context[0] = os.open("/dev/urandom", os.O_RDONLY, 0777)
I'll try to reproduce first then test if this simple fix is enough...
Frohe Weihnachten !
--
Vincent Legoll
More information about the pypy-dev
mailing list