[at-spi2-core: 12/32] Don't close the read end of the pipe in the child setup func




commit 2baac0d54c4bec2c89de190b5df425826461ca86
Author: Federico Mena Quintero <federico gnome org>
Date:   Fri Dec 10 19:44:28 2021 -0600

    Don't close the read end of the pipe in the child setup func
    
    g_spawn_async_with_pipes_and_fds() will take care of that.

 bus/at-spi-bus-launcher.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c
index 8df85c22..23a258d5 100644
--- a/bus/at-spi-bus-launcher.c
+++ b/bus/at-spi-bus-launcher.c
@@ -327,11 +327,6 @@ static void
 setup_bus_child_daemon (gpointer data)
 {
   A11yBusLauncher *app = data;
-  (void) app;
-
-  close (app->pipefd[0]);
-  dup2 (app->pipefd[1], 3);
-  close (app->pipefd[1]);
 
   set_bus_to_exit_if_this_process_dies ();
 }


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