Message186074
| Author |
vstinner |
| Recipients |
akrpic77, hynek, r.david.murray, sbt, tarek, vstinner |
| Date |
2013年04月05日.11:59:25 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<CAMpsgwZrqR0A=vz8_6+eFF7FkX+cSUbOmYxu+C8Sp2_VevCVVw@mail.gmail.com> |
| In-reply-to |
<1365156686.48.0.0507163441237.issue17634@psf.upfronthosting.co.za> |
| Content |
See also the PEP 433 which proposes to disable file descriptor
inherance by default.
2013年4月5日 Richard Oudkerk <report@bugs.python.org>:
>
> Richard Oudkerk added the comment:
>
> This problem also affects processes started by multiprocessing (although it is fixed in http://hg.python.org/sandbox/sbt#spawn).
>
> As far as I am concerned O_NOINHERIT should really have been applied by default in Python 3. You only get inheritable fds on Windows if you use the msvcrt's spawn*() functions. But in Python 3 os.spawn*() is implemented on top of subprocess so the fds are never inherited (even if the underlying handles are).
>
> ----------
>
> _______________________________________
> Python tracker <report@bugs.python.org>
> <http://bugs.python.org/issue17634>
> _______________________________________ |
|