mirror of
https://github.com/flatpak/flatpak.git
synced 2026-01-23 07:08:17 -05:00
As per https://gitlab.gnome.org/GNOME/glib/merge_requests/490 there is a bug in glib < 2.60 where g_spawn_* can sometimes deadlock due to using malloc in the child func to close fds. We work around this in places where the code is (potentially) threaded by passing glib flags to leave fds alone and then do a very naive (but safe) fd cloexec loop ourselves.