From: Sasha Levin <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
---
tools/kvm/kvm-ipc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/kvm/kvm-ipc.c b/tools/kvm/kvm-ipc.c
index 257c806c..70831b8 100644
--- a/tools/kvm/kvm-ipc.c
+++ b/tools/kvm/kvm-ipc.c
@@ -153,7 +153,7 @@ static void *kvm_ipc__thread(void *param)
r = kvm_ipc__receive(client);
} while (r == 0);
- } else if (event.events && (EPOLLERR | EPOLLRDHUP |
EPOLLHUP)) {
+ } else if (event.events & (EPOLLERR | EPOLLRDHUP |
EPOLLHUP)) {
kvm_ipc__close_conn(fd);
} else {
kvm_ipc__receive(fd);
--
1.7.8.5
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html