swaywm / swaylock

Screen locker for Wayland
MIT License
853 stars 202 forks source link

Exit when password handling subprocess crashes #381

Closed mstoeckl closed 3 weeks ago

mstoeckl commented 3 weeks ago

This change makes swaylock exit immediately when the pam child process crashes or exits early. (Once the child process has crashed, it is no longer possible to unlock the screen; having swaylock exit is now safe because ext-session-lock-v1 is required, and is better than the alternatives of operating in a state where future unlock attempts all fail, or crashing.)

To test this, run swaylock, identify its child process, and kill it.