Author eryksun
Recipients eryksun, jeremy.kloth, jkloth, nanjekyejoannah, vstinner
Date 2019-08-23.03:04:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1566529465.76.0.406964876923.issue37531@roundup.psfhosted.org>
In-reply-to
Content
> Is there a way to workaround that?

For Windows, subprocess could have a _read_all(file) method that special cases a pipe. The read loop for a pipe would check whether the child has exited. Then call _winapi.PeekNamedPipe on the handle (from get_osfhandle), and do a raw read of the available bytes. If the child has exited or PeekNamedPipe fails (EPIPE), then break, join the partial reads, decode and translate newlines if it's text mode, and return.
History
Date User Action Args
2019-08-23 03:04:25eryksunsetrecipients: + eryksun, vstinner, jkloth, jeremy.kloth, nanjekyejoannah
2019-08-23 03:04:25eryksunsetmessageid: <1566529465.76.0.406964876923.issue37531@roundup.psfhosted.org>
2019-08-23 03:04:25eryksunlinkissue37531 messages
2019-08-23 03:04:25eryksuncreate