Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 267038@main (971943d). https://bugs.webkit.org/show_bug.c…
…gi?id=257905 [GLib] Process launching hangs if xdg-dbus-proxy is not installed https://bugs.webkit.org/show_bug.cgi?id=257905 Reviewed by Carlos Garcia Campos. Currently if xdg-dbus-proxy is not installed or if it fails to start for any reason, then after attempting to run it under bwrap, we do a blocking read() and hang forever waiting for it to respond to us. Instead, let's simultaneously do an async read while also checking to see if the subprocess has quit. If it fails to spawn, then we can crash properly rather than just hang. Although I have *technically* removed the synchronous I/O, we still need to block here, so the spirit of the FIXME that hopes to avoid blocking is not satisfied. Nevertheless, I don't see a realistic path to avoid blocking, so I'm going to remove the FIXME anyway. * Source/WebKit/UIProcess/Launcher/glib/XDGDBusProxy.cpp: (WebKit::waitUntilSyncedOrDie): (WebKit::XDGDBusProxy::launch): Canonical link: https://commits.webkit.org/267038@main Canonical link: https://commits.webkit.org/266719.26@webkitglib/2.42
- Loading branch information