diff options
author | Arnon Gilboa <agilboa@redhat.com> | 2011-01-31 19:21:42 +0200 |
---|---|---|
committer | Arnon Gilboa <agilboa@agilboa.usersys.redhat.com> | 2011-04-28 11:08:48 +0300 |
commit | bc74bd6e7983e94a1e0da773b6a4e288426ec5b2 (patch) | |
tree | 5bec044d4bf4ffd752e7e8d42f867f96e64bc221 /vdservice | |
parent | 24b9dd5ca9fae135f4ce036a9682d7826b0cfe30 (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.cpp | 2 |
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); |