[at-spi2-core: 18/32] Remove set_bus_to_exit_if_this_process_dies()




commit f31a221f1129f6614d251d656657cca71a9f645b
Author: Federico Mena Quintero <federico gnome org>
Date:   Mon Dec 13 19:03:49 2021 -0600

    Remove set_bus_to_exit_if_this_process_dies()
    
    This was only used for dbus-broker.  Same as for dbus-daemon, I don't
    think we need to set the daemon to die anymore.

 bus/at-spi-bus-launcher.c | 11 -----------
 1 file changed, 11 deletions(-)
---
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
index 9ac68085..4d731492 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -313,15 +313,6 @@ on_bus_exited (GPid     pid,
   g_main_loop_quit (app->loop);
 }
 
-static void
-set_bus_to_exit_if_this_process_dies (void)
-{
-#ifdef __linux__
-  /* Tell the bus process to exit if this process goes away */
-  prctl (PR_SET_PDEATHSIG, SIGTERM);
-#endif
-}
-
 #ifdef DBUS_DAEMON
 static gboolean
 ensure_a11y_bus_daemon (A11yBusLauncher *app, char *config_path)
@@ -438,8 +429,6 @@ setup_bus_child_broker (gpointer data)
   pid_str = g_strdup_printf("%u", getpid());
   g_setenv("LISTEN_PID", pid_str, TRUE);
   g_free(pid_str);
-
-  set_bus_to_exit_if_this_process_dies ();
 }
 
 static gboolean


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