From 160fe3553fae1c2fb5f3480bada708bff9405e0b Mon Sep 17 00:00:00 2001 From: Abi Hafshin Alfarouq Date: Sat, 9 Mar 2024 23:46:22 +0700 Subject: [PATCH] core: Handle slow pam verification (#157) * Handle slow pam verification For example when using systemd-homed with fido auth * fix code style --- src/core/hyprlock.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 383ffc3..aedd86a 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -371,6 +371,9 @@ void CHyprlock::run() { int ret = poll(pollfds, 1, 5000 /* 5 seconds, reasonable. Just in case we need to terminate and the signal fails */); if (ret < 0) { + if (errno == EINTR) + continue; + Debug::log(CRIT, "[core] Polling fds failed with {}", errno); attemptRestoreOnDeath(); m_bTerminate = true;