mirror of
https://github.com/flatpak/flatpak.git
synced 2026-03-24 18:04:54 -04:00
run: Avoid hanging if xdg-dbus-proxy startup fails
This commit is contained in:
committed by
Alexander Larsson
parent
87a44588d6
commit
c95cb1973d
@@ -987,6 +987,10 @@ start_dbus_proxy (FlatpakBwrap *app_bwrap,
|
||||
NULL, error))
|
||||
return FALSE;
|
||||
|
||||
/* The write end can be closed now, otherwise the read below will hang of xdg-dbus-proxy
|
||||
fails to start. */
|
||||
g_clear_pointer (&proxy_bwrap, flatpak_bwrap_free);
|
||||
|
||||
/* Sync with proxy, i.e. wait until its listening on the sockets */
|
||||
if (read (sync_fds[0], &x, 1) != 1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user