diff options
| author | Max Kunzelmann <maxdev@posteo.de> | 2023-11-17 13:40:25 +0100 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2023-11-17 13:56:41 +0100 |
| commit | 51e9e6ceda19b3c0c5f67ec4b0885edf2a2cca37 (patch) | |
| tree | e921749ae20aa52b8083a27cfed5afd4484d515a /include/swaylock.h | |
| parent | ccd31553f335f5a67d01e4ddf00b5ed73415e4ca (diff) | |
Fix retry behaviour in while loop with mlock()
If mlock() fails with errno EAGAIN, it should be retried up to five
times, which is tracked in the retries variable. However, the `return
false` statement after the switch case makes the function return false
after the first failed mlock() call.
Remove this statement to actually retry up to five times.
Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
Diffstat (limited to 'include/swaylock.h')
0 files changed, 0 insertions, 0 deletions
