This issue tracker has been migrated to GitHub ,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
| Author | yorick |
|---|---|
| Recipients | yorick |
| Date | 2008年07月17日.11:25:36 |
| SpamBayes Score | 0.157097 |
| Marked as misclassified | No |
| Message-id | <1216293940.59.0.136491841956.issue3392@psf.upfronthosting.co.za> |
| In-reply-to |
| Content | |
|---|---|
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. |
|
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2008年07月17日 11:25:41 | yorick | set | spambayes_score: 0.157097 -> 0.157097 recipients: + yorick |
| 2008年07月17日 11:25:40 | yorick | set | spambayes_score: 0.157097 -> 0.157097 messageid: <1216293940.59.0.136491841956.issue3392@psf.upfronthosting.co.za> |
| 2008年07月17日 11:25:39 | yorick | link | issue3392 messages |
| 2008年07月17日 11:25:37 | yorick | create | |