| Index: runtime/bin/eventhandler_linux.cc
|
| diff --git a/runtime/bin/eventhandler_linux.cc b/runtime/bin/eventhandler_linux.cc
|
| index 3b39ddc74dc8d59366b1e731c86a31adaa1a703d..e15f3dfd6b39da908c9552a7d124fdb07547d7e3 100644
|
| --- a/runtime/bin/eventhandler_linux.cc
|
| +++ b/runtime/bin/eventhandler_linux.cc
|
| @@ -168,16 +168,17 @@ void EventHandlerImplementation::WakeupHandler(intptr_t id,
|
|
|
|
|
| bool EventHandlerImplementation::GetInterruptMessage(InterruptMessage* msg) {
|
| + char* dst = reinterpret_cast<char*>(msg);
|
| int total_read = 0;
|
| int bytes_read =
|
| - TEMP_FAILURE_RETRY(read(interrupt_fds_[0], msg, kInterruptMessageSize));
|
| + TEMP_FAILURE_RETRY(read(interrupt_fds_[0], dst, kInterruptMessageSize));
|
| if (bytes_read < 0) {
|
| return false;
|
| }
|
| total_read = bytes_read;
|
| while (total_read < kInterruptMessageSize) {
|
| bytes_read = TEMP_FAILURE_RETRY(read(interrupt_fds_[0],
|
| - msg + total_read,
|
| + dst + total_read,
|
| kInterruptMessageSize - total_read));
|
| if (bytes_read > 0) {
|
| total_read = total_read + bytes_read;
|
|
|