[pypy-dev] Dead loop occurs when using python-daemon and multiprocessing together in PyPy 4.0.1

Armin Rigo arigo at tunes.org
Thu Dec 24 02:02:08 EST 2015


Hi Vincent,

On Wed, Dec 23, 2015 at 7:05 PM, Vincent Legoll
<vincent.legoll at gmail.com> wrote:
> Do you thought about that removed code ?
> https://bitbucket.org/vincentlegoll/pypy/commits/992e29624c5fd8a7e76677acf085fea0520f576d
>
> The filedesc was not kept opened there, or do you meant another thing
> in this file ?

Thanks for looking it up :-)  Yes, that's exactly what I have in mind,
and indeed I see now that the file descriptor was not kept opened, so
it didn't have the problem anyway.  However rpython.rlib.rurandom line
101 keeps a file descriptor opened and reuses it without checking,
which is the problem here.


A bientôt,

Armin.


More information about the pypy-dev mailing list