From 867a71dd780afa95adc7e3e1392e4525274ac797 Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> Date: Wed, 30 Apr 2025 08:11:57 +0200 Subject: [PATCH] core: avoid calling wl_display_read_events after poll returned due to EINTR (#757) --- src/core/hyprlock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 0ce0856..baf2ee6 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -366,8 +366,9 @@ void CHyprlock::run() { events = poll(pollfds, fdcount, 5000); if (events < 0) { - wl_display_cancel_read(m_sWaylandState.display); RASSERT(errno == EINTR, "[core] Polling fds failed with {}", errno); + wl_display_cancel_read(m_sWaylandState.display); + continue; } for (size_t i = 0; i < fdcount; ++i) {