diff options
| author | Simon Ser <contact@emersion.fr> | 2025-03-14 23:49:37 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2025-03-14 23:49:37 +0100 |
| commit | 285d0292914bf6361a1a32ce1561a6d3fb6ebeca (patch) | |
| tree | 55e199a573433517eb7d3861b0039be91b0fd66f /completions | |
| parent | 34e0aabc51074a2476d27148c4f755d558da3ec9 (diff) | |
comm: improve robustness
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.
Diffstat (limited to 'completions')
0 files changed, 0 insertions, 0 deletions
