[issue3392] subprocess fails in select when descriptors are large

Mike Coleman report at bugs.python.org
Wed Mar 11 16:42:07 CET 2009


Mike Coleman <mkc at users.sourceforge.net> added the comment:

I also ran into this bug.  

In my case I'm able to work around this by "reserving" some fds at the
start of my program (open 20 reserved fds, open 2000 real fds, close 20
reserved fds), but this is both a kludge and not a general solution.

Probably virtually all uses of 'select' (both in Python and C) should be
replaced under Linux with poll or epoll.

(Also, until/unless this is fixed, it'd be nice to mention it in the
'communicate' doc.)

----------
nosy: +mkc

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3392>
_______________________________________


More information about the Python-bugs-list mailing list