From d8f609035b2ed9ffd3443cfcb4b475f66cce3f1d Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 13 Dec 2021 16:41:55 -0600 Subject: Remove unused function setup_bus_child_daemon() The switch to G_SPAWN_LEAVE_DESCRIPTORS_OPEN makes g_spawn_async_with_pipes_and_fds() use the code path for posix_spawn(), which doesn't use a child setup func. I think setting the bus to exit when at-spi-bus-launcher exits is a leftover from when the latter was rewritten in 2011, and we didn't have reliable ways of ending session daemons. --- bus/at-spi-bus-launcher.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'bus/at-spi-bus-launcher.c') diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c index 4a02c5a2..145f0aef 100644 --- a/bus/at-spi-bus-launcher.c +++ b/bus/at-spi-bus-launcher.c @@ -323,14 +323,6 @@ set_bus_to_exit_if_this_process_dies (void) } #ifdef DBUS_DAEMON -static void -setup_bus_child_daemon (gpointer data) -{ - A11yBusLauncher *app = data; - - set_bus_to_exit_if_this_process_dies (); -} - static gboolean ensure_a11y_bus_daemon (A11yBusLauncher *app, char *config_path) { -- cgit v1.2.1