aboutsummaryrefslogtreecommitdiffstats
path: root/emulator
diff options
context:
space:
mode:
authorDavid Turner <digit@android.com>2010-11-18 16:28:41 -0800
committerAndroid Code Review <code-review@android.com>2010-11-18 16:28:41 -0800
commitac65eedb55f42baaea04a1493060596bcd507636 (patch)
tree6be3c601a0b2e56b114c521e1cec5543d971d208 /emulator
parent86524123e3cab4ae971d6fd4641d960db21f18d8 (diff)
parent6bc98d9a276ecae99c9276fdedb1dc3ca95e158f (diff)
downloadsdk-ac65eedb55f42baaea04a1493060596bcd507636.zip
sdk-ac65eedb55f42baaea04a1493060596bcd507636.tar.gz
sdk-ac65eedb55f42baaea04a1493060596bcd507636.tar.bz2
Merge "Fixed a problem that physical address is inconsistent."
Diffstat (limited to 'emulator')
-rw-r--r--emulator/qemud/qemud.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/emulator/qemud/qemud.c b/emulator/qemud/qemud.c
index 92b2a2b..e1c7b54 100644
--- a/emulator/qemud/qemud.c
+++ b/emulator/qemud/qemud.c
@@ -541,6 +541,7 @@ looper_loop( Looper* l )
/* now remove all the hooks that were closed by
* the callbacks */
for (n = 0; n < l->num_fds;) {
+ struct epoll_event ev;
LoopHook* hook = l->hooks + n;
if (!(hook->state & HOOK_CLOSING)) {
@@ -550,6 +551,9 @@ looper_loop( Looper* l )
hook[0] = l->hooks[l->num_fds-1];
l->num_fds -= 1;
+ ev.events = hook->wanted;
+ ev.data.ptr = hook;
+ epoll_ctl( l->epoll_fd, EPOLL_CTL_MOD, hook->fd, &ev );
}
}
}