summaryrefslogtreecommitdiff
path: root/vdservice
diff options
context:
space:
mode:
authorArnon Gilboa <agilboa@redhat.com>2011-01-31 19:21:42 +0200
committerArnon Gilboa <agilboa@agilboa.usersys.redhat.com>2011-04-28 11:08:48 +0300
commitbc74bd6e7983e94a1e0da773b6a4e288426ec5b2 (patch)
tree5bec044d4bf4ffd752e7e8d42f867f96e64bc221 /vdservice
parent24b9dd5ca9fae135f4ce036a9682d7826b0cfe30 (diff)
vdservice: don't close pipe if overlapped I/O event is not in signaled state (rhbz#667777)
which is beacuse ReadFile completed successfully without pending and the data was already consumed
Diffstat (limited to 'vdservice')
-rw-r--r--vdservice/vdservice.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/vdservice/vdservice.cpp b/vdservice/vdservice.cpp
index 175587c..85fa182 100644
--- a/vdservice/vdservice.cpp
+++ b/vdservice/vdservice.cpp
@@ -512,7 +512,7 @@ bool VDService::execute()
&bytes, FALSE) || GetLastError() == ERROR_MORE_DATA) {
handle_pipe_data(bytes);
read_pipe();
- } else {
+ } else if (GetLastError() != ERROR_IO_INCOMPLETE) {
vd_printf("GetOverlappedResult failed %u", GetLastError());
_pipe_connected = false;
DisconnectNamedPipe(_pipe_state.pipe);