mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-04 07:11:28 -04:00
run: Avoid hanging if xdg-dbus-proxy startup fails
(cherry picked from commit c95cb1973d)
This commit is contained in:
committed by
Alexander Larsson
parent
d608366827
commit
d1d53eb7b1
@@ -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