| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2025-03-14 | comm: improve robustness | Simon Ser | |
| swaylock was performing some read() calls with a >1 size and didn't handle partial reads. Fix this by introducing two helpers, read_full() and write_full(), to read/write a complete buffer. read_comm_request() needs to make the difference between EOF at the start of a message vs. in the middle, so needs to return a tri-state. | |||
| 2025-03-12 | Better handle subprocess crashes | Simon Ser | |
| On my machine EOF doesn't trigger POLLHUP (not sure why), instead read() returns zero. It just prints the following message in a loop: [comm.c:101] Failed to read pw result: Success Better handle this case in read_comm_reply() by making a difference between a failed read() and a failed authentication. | |||
| 2022-06-15 | Use mlock for password buffer | Robin Ebert | |
| 2019-01-17 | Check password without blocking | emersion | |
| 2019-01-17 | Move PAM into a child process | emersion | |
