mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
core: Handle slow pam verification (#157)
* Handle slow pam verification For example when using systemd-homed with fido auth * fix code style
This commit is contained in:
parent
8086d896e6
commit
160fe3553f
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue