Skip to content
Myr

wayland: handle EAGAIN in timerfd handler

Before adoption: this commit came in with the history the project adopted, so no landing records it.

We previously treated EAGAIN as EPOLLIN. That is, that we can read from the socket. We cant.

authored by Daniel Eklöf · committed by Daniel Eklöf · parent 9177c53 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:wayland.c+4 added-1 removed
678 unmodified lines
679 uint64_t expiration_count;680 ssize_t ret = read(681 repeat->fd, &expiration_count, sizeof(expiration_count));682683 if (ret < 0 && errno != EAGAIN) {683 if (ret < 0) {684 if (errno == EAGAIN)685 return true;686687 LOG_ERRNO("failed to read key repeat count from timer fd");688 return false;689 }690
228 unmodified lines