New submission from Mattias Engdegård <[EMAIL PROTECTED]>: If the stdin/out file descriptors are too large to be used with select(), subprocess will fail in .communicate(). Example:
# raise the fd limit to something like 2048 before running this import subprocess somefiles = [open("/etc/passwd") for i in xrange(2000)] print subprocess.Popen(["date"], stdout=subprocess.PIPE).communicate() The solution would be to use select.poll() in subprocess instead. ---------- components: Library (Lib) messages: 69880 nosy: yorick severity: normal status: open title: subprocess fails in select when descriptors are large versions: Python 2.5 _______________________________________ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3392> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com