libcutils/selector.c
static void eatWakeupData(SelectableFd* wakeupFd) {
    static char garbage[64];
    if (read(wakeupFd->fd, garbage, sizeof(garbage)) < 0) {
        if (errno == EINTR) {
            LOGI("read() interrupted.");    
        } else {
            LOG_ALWAYS_FATAL("This should never happen: %s", strerror(errno));
        }
    }
}
/** Reads and ignores wake up data. */
Reads and ignores wake up data.
Reads and ignores wake up data .
static void eatWakeupData(SelectableFd* wakeupFd) {
    static char garbage[64];
    if (read(wakeupFd->fd, garbage, sizeof(garbage)) < 0) {
        if (errno == EINTR) {
            LOGI("read() interrupted.");    
        } else {
            LOG_ALWAYS_FATAL("This should never happen: %s", strerror(errno));
        }
    }
}
static void eatWakeupData ( SelectableFd * wakeupFd ) { static char garbage [ 64 ] ; if ( read ( wakeupFd -> fd , garbage , sizeof ( garbage ) ) < 0 ) { if ( errno == EINTR ) { LOGI ( " " ) ; } else { LOG_ALWAYS_FATAL ( " " , strerror ( errno ) ) ; } } }
Reads and ignores wake up data.
Reads and ignores wake up data .