Skip to content

Commit

Permalink
core: Handle slow pam verification (#157)
Browse files Browse the repository at this point in the history
* Handle slow pam verification

For example when using systemd-homed with fido auth

* fix code style
  • Loading branch information
abihf authored Mar 9, 2024
1 parent 8086d89 commit 160fe35
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/hyprlock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 160fe35

Please sign in to comment.