mirror of
https://github.com/flatpak/flatpak.git
synced 2026-09-14 23:34:43 -04:00
If we created an instance and we failed to get the PID of the instance, we would still succeed. If one later calls flatpak_instance_is_running or uses the result of flatpak_instance_get_pid with kill, it's possible to terminate the entire process group (kill 0). Let's just error out as early as possible to avoid those weird half-initialized cases. That unfortunately means we have to adjust a bunch of callers as well, but fortunately, this only affects internal API.