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 eryksun
Recipients Bernt.Røskar.Brenna, Segev Finer, eryksun, gregory.p.smith, paul.moore, sbt, steve.dower, tim.golden, vstinner, xflr6, zach.ware
Date 2018-06-30.20:31:38
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1530390698.61.0.56676864532.issue19764@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-06-30 20:31:38eryksunsetrecipients: + 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:38eryksunsetmessageid: <1530390698.61.0.56676864532.issue19764@psf.upfronthosting.co.za>
2018-06-30 20:31:38eryksunlinkissue19764 messages
2018-06-30 20:31:38eryksuncreate