diff options
author | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-08-25 08:06:26 -0700 |
---|---|---|
committer | Vladimir Chtchetkine <vchtchetkine@google.com> | 2011-08-25 08:06:26 -0700 |
commit | fd16505ce923202f0abe74bfe7c3ba110d325ebe (patch) | |
tree | e7db685afc43702513f520c689e267987321d24e /android/hw-pipe-net.c | |
parent | 6c13702fee11a40c72e71432c5438fc65602bd5d (diff) | |
download | external_qemu-fd16505ce923202f0abe74bfe7c3ba110d325ebe.zip external_qemu-fd16505ce923202f0abe74bfe7c3ba110d325ebe.tar.gz external_qemu-fd16505ce923202f0abe74bfe7c3ba110d325ebe.tar.bz2 |
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
Diffstat (limited to 'android/hw-pipe-net.c')
-rw-r--r-- | android/hw-pipe-net.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/android/hw-pipe-net.c b/android/hw-pipe-net.c index b3bc6c9..2a09718 100644 --- a/android/hw-pipe-net.c +++ b/android/hw-pipe-net.c @@ -349,9 +349,9 @@ netPipe_poll( void* opaque ) unsigned ret = 0; if (mask & LOOP_IO_READ) - ret |= PIPE_WAKE_READ; + ret |= PIPE_POLL_IN; if (mask & LOOP_IO_WRITE) - ret |= PIPE_WAKE_WRITE; + ret |= PIPE_POLL_OUT; return ret; } |