Message351353
| Author |
vstinner |
| Recipients |
vstinner |
| Date |
2019年09月09日.07:28:51 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1568014131.11.0.536494003937.issue38061@roundup.psfhosted.org> |
| In-reply-to |
| Content |
A workaround is to use close_fds=False which is only safe if all code used in Python implements the PEP 446.
This PEP mentions the FreeBSD issue, mentioning bpo-11284 with MAXFD=655,000:
"The operation can be slow if MAXFD is large. For example, on a FreeBSD buildbot with MAXFD=655,000, the operation took 300 ms: see issue #11284: slow close file descriptors."
Note: the subprocess module is now able to use posix_spawn() syscall, but it doesn't use it if close_fds=True, so it's outside the scope of this issue. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2019年09月09日 07:28:51 | vstinner | set | recipients:
+ vstinner |
| 2019年09月09日 07:28:51 | vstinner | set | messageid: <1568014131.11.0.536494003937.issue38061@roundup.psfhosted.org> |
| 2019年09月09日 07:28:51 | vstinner | link | issue38061 messages |
| 2019年09月09日 07:28:51 | vstinner | create |
|