mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2025-12-25 17:40:11 +01:00
Merge branch 'fix_warning' into 'main'
compositor: Check for EINTR reading timerfd See merge request wayland/weston!1923
This commit is contained in:
commit
766a1dac34
1 changed files with 7 additions and 1 deletions
|
|
@ -4156,8 +4156,14 @@ output_repaint_timer_handler(int fd, uint32_t mask, void *data)
|
||||||
struct timespec now;
|
struct timespec now;
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
uint64_t e;
|
uint64_t e;
|
||||||
|
ssize_t size;
|
||||||
|
|
||||||
read(compositor->repaint_timer_fd, &e, sizeof e);
|
do {
|
||||||
|
size = read(compositor->repaint_timer_fd, &e, sizeof e);
|
||||||
|
} while (size < 0 && errno == EINTR);
|
||||||
|
|
||||||
|
if (size < 0)
|
||||||
|
weston_log("repaint timer read failed: %s\n", strerror(errno));
|
||||||
|
|
||||||
/* We may have transactions with constraints that cleared after
|
/* We may have transactions with constraints that cleared after
|
||||||
* the last repaint. That repaint would have unconditionally
|
* the last repaint. That repaint would have unconditionally
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue