~mil/sxmo-devel

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH wvkbd] event loop: exit if the wayland socket disappears

Details
Message ID
<20240130015627.8392-2-zachdecook@librem.one>
DKIM signature
pass
Download raw message
Patch: +6 -0
(prevents infinite loop when your compositor crashes)
---
 main.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/main.c b/main.c
index b1cdfef..a17812c 100644
--- a/main.c
+++ b/main.c
@@ -1025,6 +1025,12 @@ main(int argc, char **argv)

        if (fds[WAYLAND_FD].revents & POLLIN)
            wl_display_dispatch(display);
        if (fds[WAYLAND_FD].revents & POLLERR) {
            die("Exceptional condition on wayland socket.\n");
        }
        if (fds[WAYLAND_FD].revents & POLLHUP) {
            die("Wayland socket has been disconnected.\n");
        }

        if (fds[SIGNAL_FD].revents & POLLIN) {
            struct signalfd_siginfo si;
-- 
2.43.0
Details
Message ID
<CYS86MAYSN0F.2JQPQL34E45S4@anaproy.nl>
In-Reply-To
<20240130015627.8392-2-zachdecook@librem.one> (view parent)
DKIM signature
pass
Download raw message
Thanks, applied!
Reply to thread Export thread (mbox)