Message186047
| Author |
r.david.murray |
| Recipients |
akrpic77, hynek, r.david.murray, sbt, tarek, vstinner |
| Date |
2013年04月04日.19:04:04 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1365102244.3.0.258927317605.issue17634@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Unless I'm misunderstanding something, this has already been fixed in python3, where subprocess closes any open files (other than stdin/stdout/stderr) by default. In Python2.7 (and possibly earlier, I haven't checked) you can get the same effect by specifying close_fds=True in the Popen call.
I don't see any reason why shutil should take any special action in this case, this is a general problem with open file descriptors and subprocess. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2013年04月04日 19:04:04 | r.david.murray | set | recipients:
+ r.david.murray, vstinner, tarek, akrpic77, sbt, hynek |
| 2013年04月04日 19:04:04 | r.david.murray | set | messageid: <1365102244.3.0.258927317605.issue17634@psf.upfronthosting.co.za> |
| 2013年04月04日 19:04:04 | r.david.murray | link | issue17634 messages |
| 2013年04月04日 19:04:04 | r.david.murray | create |
|