projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1891eaf
)
gspawn: Fix leak of internal pipe with G_SPAWN_LEAVE_DESCRIPTORS_OPEN
author
Paul Barbieri
<paul.barbieri@baesystems.com>
Mon, 1 Jul 2013 20:10:28 +0000
(21:10 +0100)
committer
Colin Walters
<walters@verbum.org>
Mon, 1 Jul 2013 20:10:28 +0000
(21:10 +0100)
Even when the app author specifies G_SPAWN_LEAVE_DESCRIPTORS_OPEN,
we should avoid leaking our internal pipe machinery into the
child.
Commit message written by: Colin Walters <walters@verbum.org>
https://bugzilla.gnome.org/show_bug.cgi?id=703407
glib/gspawn.c
patch
|
blob
|
history
diff --git
a/glib/gspawn.c
b/glib/gspawn.c
index
f9baaa3
..
3db3c8d
100644
(file)
--- a/
glib/gspawn.c
+++ b/
glib/gspawn.c
@@
-1395,6
+1395,7
@@
fork_exec_with_pipes (gboolean intermediate_child,
}
else if (grandchild_pid == 0)
{
+ close_and_invalidate (&child_pid_report_pipe[1]);
do_exec (child_err_report_pipe[1],
stdin_pipe[0],
stdout_pipe[1],