[at-spi2-core: 15/32] Remove unused function setup_bus_child_daemon()




commit d8f609035b2ed9ffd3443cfcb4b475f66cce3f1d
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Dec 13 16:41:55 2021 -0600

    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(-)
---
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)
 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]