[PATCH weston] xwayland: Fix crash on weston shutdown

Daniel Stone daniel at fooishbar.org
Mon Feb 5 22:35:26 UTC 2018


On 5 February 2018 at 22:02, Derek Foreman <derekf at osg.samsung.com> wrote:
> commit e7fff215ada3fd3d1b2af664888f960c082f9065 made initializing the
> selection_listener conditional, but didn't make its clean-up
> conditional at shutdown.
> To see this, run weston -Bheadless-backend.so and then connect to it
> with an X client.  When killing weston it will attempt shutdown but
> die with a segfault.

For bonus points, it seems like it should really hang off the seat's
destroy_signal too ...

wm_list_init() somewhere in init would be more in keeping with the
rest of the codebase; with that, this is:
Reviewed-by: Daniel Stone <daniels at collabora.com>


More information about the wayland-devel mailing list