mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04:00
wayland: roundtrip: log error and abort when wl_display_roundtrip() fails
ayl_roundtrip() has the following code:
wl_display_roundtrip(wayl->display);
while (wl_display_prepare_read(wayl->display) != 0)
wl_display_dispatch_pending(wayl->display);
wayl_flush(wayl);
If the first wl_display_roundtrip() fails, for example because the
Wayland socket has been closed, we may get stuck in the while-loop.
This happens if the read queue isn’t empty, in which case
wl_display_prepare_read() will return -1 and we’ll continue trying to
dispatch the pending events forever, never succeeding since the socket
is gone.
Closes #542
This commit is contained in:
parent
361fb74a8f
commit
7bdecaae3b
2 changed files with 13 additions and 3 deletions
|
|
@ -126,6 +126,9 @@
|
|||
* Rare occurrences where the window did not close when the shell
|
||||
exited. Only seen on FreeBSD
|
||||
(https://codeberg.org/dnkl/foot/issues/534)
|
||||
* Foot process(es) sometimes remaining, using 100% CPU, when closing
|
||||
multiple foot windows at the same time
|
||||
(https://codeberg.org/dnkl/foot/issues/542).
|
||||
|
||||
|
||||
### Security
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue