From fd16505ce923202f0abe74bfe7c3ba110d325ebe Mon Sep 17 00:00:00 2001 From: Vladimir Chtchetkine Date: Thu, 25 Aug 2011 08:06:26 -0700 Subject: Fix qemu pipe's 'poll' callbacks Throughout emulator's code pipe's 'poll' callback was returning PIPE_WAKE_XXX, instead of PIPE_POLL_XXX flags. This created whole sort of issues with the qemu pipe service <-> client communications. This is also a fix for http://b/issue?id=5196348 Change-Id: I92202cf4ef4554559eb022c4410ee93923edec1b --- android/hw-qemud.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'android/hw-qemud.c') diff --git a/android/hw-qemud.c b/android/hw-qemud.c index 7de66e0..44d9dd7 100644 --- a/android/hw-qemud.c +++ b/android/hw-qemud.c @@ -1965,9 +1965,9 @@ _qemudPipe_poll(void* opaque) unsigned ret = 0; if (client != NULL) { - ret |= PIPE_WAKE_WRITE; + ret |= PIPE_POLL_OUT; if (client->ProtocolSelector.Pipe.messages != NULL) { - ret |= PIPE_WAKE_READ; + ret |= PIPE_POLL_IN; } } else { D("%s: Unexpected NULL client", __FUNCTION__); -- cgit v1.1