aboutsummaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-07-24 18:31:14 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-07-24 18:38:56 +0000
commitbcd28311f4e2625ae45a21bbcd1817cdcf5ce5f3 (patch)
treed1c17fa26e5a8a35e3c088a5a9c327a66ca946f6 /debug.h
parentdoc: meson: no need to check for scdoc again (diff)
wayland: prevent hang when terminating due to broken Wayland connection
If the call to fdm_wayl() with EPOLLHUP was followed by calls to wayl_roundtrip(), foot would hang. The reason for this is that the EPOLLHUP handler in fdm_wayl() would call wl_display_cancel_read(). wayl_roundtrip() also calls wl_display_cancel_read() (since we normally have called wl_display_prepare_read()), before calling wl_display_roundtrip(). When calling wl_display_cancel_read() two times in a row, without a wl_display_prepare_read() in between, wl_display_roundtrip() hangs. Fix by not calling wl_display_cancel_read() in fdm_wayl(). This ensures our invariant holds: wl_display_prepare_read() is *always* in effect outside of fdm_wayl(). Closes #651
Diffstat (limited to 'debug.h')
0 files changed, 0 insertions, 0 deletions