Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Cage gets stuck calling wl_display_terminate when handling SIGCHLD #2012

@Hjdskes

Description

@Hjdskes

I'm implementing support for SIGCHLD in Cage to exit when the primary client either exits without spawning a window or when it crashes.

I already have support for SIGINT and SIGTERM for which I just call wl_display_terminate, which works fine.

When I now call wl_display_terminate upon receiving SIGCHLD, Cage seems to get stuck somewhere (I suspect in rendering) and I have to close the Wayland backend's window for Cage to get unstuck.

I've raised this issue on IRC where @ascent12 mentioned it's likely a wlroots bug, hence this issue. You can view the branch here. The reason I suspect Cage gets stuck in rendering is because I had to fix a segfault in that code, see cage-kiosk/cage@86c5d57 in that branch. I'm testing this against wlroots 0.10.0.

Let me know if there's anything else I can provide of if you need me to try something.


wlroots has migrated to gitlab.freedesktop.org. This issue has been moved to:

https://gitlab.freedesktop.org/wlroots/wlroots/-/issues/2012

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions