core: avoid calling wl_display_read_events after poll returned due to EINTR (#757)

This commit is contained in:
Maximilian Seidler 2025-04-30 08:11:57 +02:00 committed by GitHub
parent 82808290d9
commit 867a71dd78
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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) {