in XWayland, dri3_send_open_reply() is called from a sync callback, so there is a possibility that the client might be gone when we get to the callback eventually, which leads to a crash in _XSERVTransSendFd() from WriteFdToClient() .
Check if clientGone has been set in the sync callback handler to avoid this.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99149 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100040 Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1416553
64ca14b xwayland: make sure client is not gone in sync callback
hw/xwayland/xwayland-glamor.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)