This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[WPE][GTK] BubblewrapLauncher leaks D-Bus proxy sockets
https://bugs.webkit.org/show_bug.cgi?id=201771 Reviewed by Michael Catanzaro. xdg-dbus-proxy removes the socket when the sync fd is closed by the application. In most of the cases the xdg-dbus-proxy process is killed before the sync fd is closed and the socket file is leaked. We should explicitly close the sync fd. * UIProcess/Launcher/glib/XDGDBusProxy.cpp: (WebKit::XDGDBusProxy::XDGDBusProxy): Save the sync fd. (WebKit::XDGDBusProxy::~XDGDBusProxy): Close the sync fd is needed. (WebKit::XDGDBusProxy::launch const): Return the sync fd. * UIProcess/Launcher/glib/XDGDBusProxy.h: Canonical link: https://commits.webkit.org/247121@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@289608 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing 3 changed files with 30 additions and 3 deletions.