⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 295349 in webkit


Ignore:
Timestamp:
Jun 7, 2022, 9:13:20 AM (4 years ago)
Author:
commit-queue@webkit.org
Message:

[WPE][GTK] xdg-dbus-proxy process sometimes go zombie
​https://bugs.webkit.org/show_bug.cgi?id=241317

Patch by Philippe Normand <​philn@igalia.com> on 2022-06-07
Reviewed by Adrian Perez de Castro and Xabier Rodriguez-Calvar.

The atexit hook seems problematic for subprocesses, so try to kill the xdg-dbus-proxy process from
the WebKitFlatpak destructor instead.

  • Tools/flatpak/flatpakutils.py:

(WebkitFlatpak.init):
(WebkitFlatpak):
(WebkitFlatpak.del):
(WebkitFlatpak.setup_a11y_proxy):

Canonical link: ​https://commits.webkit.org/251364@main

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/flatpak/flatpakutils.py

    r293889 r295349  
    578578        self.sccache_scheduler = DEFAULT_SCCACHE_SCHEDULER
    579579
     580        self.dbus_proxy_process = None
     581
     582    def __del__(self):
     583        if self.dbus_proxy_process:
     584            self.dbus_proxy_process.kill()
     585
    580586    def execute_command(self, args, stdout=None, stderr=None, env=None, keep_signals=True):
    581587        if keep_signals:
    … …  
    756762
    757763        try:
    758             proxy_proc = subprocess.Popen((dbus_proxy_path, a11y_bus_address, self.a11y_socket.name))
    759 
    760             atexit.register(lambda: proxy_proc.terminate())
     764            self.dbus_proxy_process = subprocess.Popen((dbus_proxy_path, a11y_bus_address, self.a11y_socket.name, "--talk=org.a11y.Bus"), close_fds=True)
    761765        except (subprocess.CalledProcessError) as e:
    762766            _log.warning("Failed to run xdg-dbus-proxy {}. Can't forward a11y bus.".format(e))
Note: See TracChangeset for help on using the changeset viewer.