[glib/glib-2-70: 1/4] gspawn: use close_and_invalidate more
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-70: 1/4] gspawn: use close_and_invalidate more
- Date: Wed, 15 Dec 2021 14:21:40 +0000 (UTC)
commit 7663664c0ae90cd50e7ea19d2ca5147043f15b84
Author: Michael Catanzaro <mcatanzaro redhat com>
Date: Tue Dec 14 13:36:24 2021 -0600
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 51b4c79ac..2b191634c 100644
--- a/glib/gspawn.c
+++ b/glib/gspawn.c
@@ -1798,7 +1798,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]