summaryrefslogtreecommitdiffstats
path: root/src/corelib/io/qwindowspipereader.cpp
diff options
context:
space:
mode:
authorQt CI Bot <qt_ci_bot@qt-project.org>2021-03-25 15:25:08 +0000
committerQt CI Bot <qt_ci_bot@qt-project.org>2021-03-25 15:25:08 +0000
commit9145650302d3cfe7df0fbc2a11f5d8f5f867897d (patch)
tree127fbed0c253383f4427814c6948fd11dc0d83f8 /src/corelib/io/qwindowspipereader.cpp
parent14eeb520858b624a2c9e09b5bd95ea8fb90a1f5a (diff)
parent82c67623db5d9708d2565bed2e8f68ad3dd190b1 (diff)
Merge integration refs/builds/qtci/dev/1616671507
Diffstat (limited to 'src/corelib/io/qwindowspipereader.cpp')
-rw-r--r--src/corelib/io/qwindowspipereader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/corelib/io/qwindowspipereader.cpp b/src/corelib/io/qwindowspipereader.cpp
index bf03737c39..638405ae75 100644
--- a/src/corelib/io/qwindowspipereader.cpp
+++ b/src/corelib/io/qwindowspipereader.cpp
@@ -51,7 +51,7 @@ QWindowsPipeReader::QWindowsPipeReader(QObject *parent)
: QObject(parent),
handle(INVALID_HANDLE_VALUE),
eventHandle(CreateEvent(NULL, FALSE, FALSE, NULL)),
- syncHandle(CreateEvent(NULL, FALSE, FALSE, NULL)),
+ syncHandle(CreateEvent(NULL, TRUE, FALSE, NULL)),
waitObject(NULL),
readBufferMaxSize(0),
actualReadBufferSize(0),
@@ -396,6 +396,7 @@ bool QWindowsPipeReader::event(QEvent *e)
*/
bool QWindowsPipeReader::consumePendingAndEmit(bool allowWinActPosting)
{
+ ResetEvent(syncHandle);
mutex.lock();
// Enable QEvent::WinEventAct posting.