diff options
| author | Alex Trotsenko <[email protected]> | 2021-01-15 19:39:08 +0200 |
|---|---|---|
| committer | Alex Trotsenko <[email protected]> | 2021-01-22 16:26:39 +0200 |
| commit | 3fc6b45cbb7b9bf3800be7c1f68b1484749489a3 (patch) | |
| tree | 3db50e11933c6c5115e1c1001ca234bcdda0b4e0 /util/cmake/pro2cmake.py | |
| parent | 5ea701337dc2a4e153a22e6e4aba1939f88714cf (diff) | |
QProcess/Win: move pipe draining into QWindowsPipeReader
... where it belongs.
To avoid the loop, introduce the drainAndStop() function, which allows
QWindowsPipeReader to flush the pipe itself. It determines the number of
bytes pending and blocks until the remainder of the process output is
received.
Note that the loop in drainOutputPipes() didn't actually have to
interleave the two pipes (because we're presuming that the operations
will finish instantly), so we don't do it now. Also, the code violated
the API contract: 'true' was returned when the 'wrong' channel received
data; this is now fixed as a side effect.
Change-Id: I38ed4861a238e39e793c3716e856e5bfdeed3d74
Reviewed-by: Oswald Buddenhagen <[email protected]>
Diffstat (limited to 'util/cmake/pro2cmake.py')
0 files changed, 0 insertions, 0 deletions
