mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-14 16:26:17 +01:00
gspawn: Fix leak of internal pipe with G_SPAWN_LEAVE_DESCRIPTORS_OPEN
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
This commit is contained in:
parent
1891eafd1d
commit
e55ccf7338
@ -1395,6 +1395,7 @@ fork_exec_with_pipes (gboolean intermediate_child,
|
|||||||
}
|
}
|
||||||
else if (grandchild_pid == 0)
|
else if (grandchild_pid == 0)
|
||||||
{
|
{
|
||||||
|
close_and_invalidate (&child_pid_report_pipe[1]);
|
||||||
do_exec (child_err_report_pipe[1],
|
do_exec (child_err_report_pipe[1],
|
||||||
stdin_pipe[0],
|
stdin_pipe[0],
|
||||||
stdout_pipe[1],
|
stdout_pipe[1],
|
||||||
|
Loading…
Reference in New Issue
Block a user