Message320806
Sebastian, the problem in this case is that startupinfo.lpAttributeList['handle_list'] contains the duplicated standard-handle values from the previous call, which were closed and are no longer valid. subprocess.Popen has always modified STARTUPINFO in place, including dwFlags, hStdInput, hStdOutput, hStdError, and wShowWindow. This update follows suit to also modify lpAttributeList in place.
This issue is closed. Please create a new issue if you think Popen should use a deep copy of startupinfo instead, to allow callers to reuse a single STARTUPINFO instance. Or the new issue could propose only to document the existing behavior. |
|
Date |
User |
Action |
Args |
2018-06-30 20:31:38 | eryksun | set | recipients:
+ eryksun, gregory.p.smith, paul.moore, vstinner, tim.golden, Bernt.Røskar.Brenna, sbt, zach.ware, steve.dower, xflr6, Segev Finer |
2018-06-30 20:31:38 | eryksun | set | messageid: <1530390698.61.0.56676864532.issue19764@psf.upfronthosting.co.za> |
2018-06-30 20:31:38 | eryksun | link | issue19764 messages |
2018-06-30 20:31:38 | eryksun | create | |
|