Skip to content
Commit 638dee44 authored by Michael Olbrich's avatar Michael Olbrich Committed by Marius Vlad
Browse files

libweston: mitigate race when destroying outputs

With some displays connect, disconnect, connect events can happen is a very
short amount of time. When this happens, the output global may already be
destroyed when a client tries to bind it. As a result, the client is
disconnected with a protocol error. See [1] for more details on the general
problem.

To mitigate this problem call wl_global_remove() first and call
wl_global_destroy() several seconds later. This is inspired by the
implementation for the same problem in wlroots.

[1] wayland/wayland#10



Signed-off-by: default avatarMichael Olbrich <m.olbrich@pengutronix.de>
parent 3c686608
Loading
Loading
Loading
Pipeline #829312 passed with stages
in 1 minute and 45 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment