Author yorick
Recipients yorick
Date 2008-07-17.11:25:36
SpamBayes Score 0.157097
Marked as misclassified No
Message-id <>
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.
Date User Action Args
2008-07-17 11:25:41yoricksetspambayes_score: 0.157097 -> 0.157097
recipients: + yorick
2008-07-17 11:25:40yoricksetspambayes_score: 0.157097 -> 0.157097
messageid: <>
2008-07-17 11:25:39yoricklinkissue3392 messages
2008-07-17 11:25:37yorickcreate