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 vstinner
Recipients gvanrossum, larry, pitrou, sbt, vstinner
Date 2014-01-30.15:22:28
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1391095349.64.0.498559512626.issue20449@psf.upfronthosting.co.za>
In-reply-to
Content
I found an issue in overlapped.c: read_buffer and write_buffer attributes are defined in an union, but they are sometimes use even if the type is not good. I found this issue while trying to get a BrokenPipeError on Windows when the stdin stream of a subprocess is full but the process exited.

Could you please review attached patch, especially the change in Overlapped_getresult?

Another option would be to use two real attributes (remove the union), but I like the usage of union :-)

All Tulip unit tests of my subprocess_stream pass on Linux and Windows with the patch.
History
Date User Action Args
2014-01-30 15:22:29vstinnersetrecipients: + vstinner, gvanrossum, pitrou, larry, sbt
2014-01-30 15:22:29vstinnersetmessageid: <1391095349.64.0.498559512626.issue20449@psf.upfronthosting.co.za>
2014-01-30 15:22:29vstinnerlinkissue20449 messages
2014-01-30 15:22:29vstinnercreate