Exit when password handling subprocess crashes
It is better to have swaylock crash immediately and the compositor show a red screen than to operate in a degraded state where passwords cannot be checked and the screen cannot be unlocked.
This commit is contained in:
parent
fc6fbc98fb
commit
96f0a0f9c6
3
main.c
3
main.c
@ -1038,6 +1038,9 @@ static void comm_in(int fd, short mask, void *data) {
|
||||
if (read_comm_reply()) {
|
||||
// Authentication succeeded
|
||||
state.run_display = false;
|
||||
} else if (mask & (POLLHUP | POLLERR)) {
|
||||
swaylock_log(LOG_ERROR, "Password checking subprocess crashed; exiting.");
|
||||
exit(EXIT_FAILURE);
|
||||
} else {
|
||||
state.auth_state = AUTH_STATE_INVALID;
|
||||
schedule_auth_idle(&state);
|
||||
|
Loading…
Reference in New Issue
Block a user