[glib/mcatanzaro/glib-2-68-rhel9: 6/27] gspawn: use close_and_invalidate more




commit ecde1b75d0faed276a4e20fc2df0803d8f25acee
Author: Michael Catanzaro <mcatanzaro redhat com>
Date:   Tue Oct 12 15:52:18 2021 -0500

    gspawn: use close_and_invalidate more

 glib/gspawn.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/glib/gspawn.c b/glib/gspawn.c
index a15fb1ca1..5d8422869 100644
--- a/glib/gspawn.c
+++ b/glib/gspawn.c
@@ -1710,7 +1710,7 @@ do_exec (gint                  child_err_report_fd,
                 child_err_report_fd = safe_dup (child_err_report_fd);
 
               safe_dup2 (source_fds[i], target_fds[i]);
-              (void) close (source_fds[i]);
+              close_and_invalidate (&source_fds[i]);
             }
         }
     }


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