diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-06-02 13:26:43 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2009-06-03 09:23:36 (GMT) |
commit | 4948f4b188c6aa40e628d74d6d6fce747ee535bd (patch) | |
tree | ea6948b96fb7b5f16ed2cba73a53322b099b3560 /src | |
parent | 716e2105dce4487baa32a4e11b69f1d394515a86 (diff) | |
download | Qt-4948f4b188c6aa40e628d74d6d6fce747ee535bd.zip Qt-4948f4b188c6aa40e628d74d6d6fce747ee535bd.tar.gz Qt-4948f4b188c6aa40e628d74d6d6fce747ee535bd.tar.bz2 |
open pipes in overlapped mode also on the client side
otherwise PeekNamedPipe() may block in threaded environments.
Reviewed-by: thiago
Diffstat (limited to 'src')
-rw-r--r-- | src/network/socket/qlocalsocket_win.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/socket/qlocalsocket_win.cpp b/src/network/socket/qlocalsocket_win.cpp index 39c9284..ace3bc5 100644 --- a/src/network/socket/qlocalsocket_win.cpp +++ b/src/network/socket/qlocalsocket_win.cpp @@ -144,7 +144,7 @@ void QLocalSocket::connectToServer(const QString &name, OpenMode openMode) 0, // no sharing NULL, // default security attributes OPEN_EXISTING, // opens existing pipe - 0, // default attributes + FILE_FLAG_OVERLAPPED, NULL); // no template file }, { localSocket = CreateFileA( @@ -153,7 +153,7 @@ void QLocalSocket::connectToServer(const QString &name, OpenMode openMode) 0, // no sharing NULL, // default security attributes OPEN_EXISTING, // opens existing pipe - 0, // default attributes + FILE_FLAG_OVERLAPPED, NULL); // no template file }); if (localSocket != INVALID_HANDLE_VALUE) |