Philip Withnall bec456ba0a 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
https://gitlab.gnome.org/GNOME/glib/-/issues/2332.

Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1738>
2021-02-24 14:17:07 +00:00
..
2021-02-22 13:52:27 +01:00
2021-02-22 13:52:27 +01:00
2021-02-22 13:52:27 +01:00
2021-02-22 13:52:27 +01:00
2021-02-22 13:52:27 +01:00
2021-02-22 13:52:27 +01:00