Skip to content

meta-xwayland: Fix some FD leaks on error paths

If meta_xwayland_start_xserver() returned via an error path, some of the socket FDs were leaked.

Fix that, and add steal_fd() calls to make it clearer that FDs passed to g_subprocess_launcher_take_fd() are transferred to it. There were no bugs with how GSubprocessLauncher was being used.

Spotted while working on glib#2332 (closed).

Signed-off-by: Philip Withnall pwithnall@endlessos.org

Merge request reports