From: Havoc Pennington Date: Thu, 23 May 2002 15:36:53 +0000 (+0000) Subject: on success, close the pipes from the child. Fix from Tim. X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=1ce72b0584f70f0c0f267938692d465275ee2d2d;p=dana%2Fcg-glib.git on success, close the pipes from the child. Fix from Tim. 2002-05-23 Havoc Pennington * glib/gspawn.c (fork_exec_with_pipes): on success, close the pipes from the child. Fix from Tim. --- diff --git a/ChangeLog b/ChangeLog index 4a018176..d9345429 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-05-23 Havoc Pennington + + * glib/gspawn.c (fork_exec_with_pipes): on success, close the + pipes from the child. Fix from Tim. + 2002-05-22 jacob berkman * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 4a018176..d9345429 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,8 @@ +2002-05-23 Havoc Pennington + + * glib/gspawn.c (fork_exec_with_pipes): on success, close the + pipes from the child. Fix from Tim. + 2002-05-22 jacob berkman * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 4a018176..d9345429 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,8 @@ +2002-05-23 Havoc Pennington + + * glib/gspawn.c (fork_exec_with_pipes): on success, close the + pipes from the child. Fix from Tim. + 2002-05-22 jacob berkman * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 4a018176..d9345429 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,8 @@ +2002-05-23 Havoc Pennington + + * glib/gspawn.c (fork_exec_with_pipes): on success, close the + pipes from the child. Fix from Tim. + 2002-05-22 jacob berkman * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 4a018176..d9345429 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,8 @@ +2002-05-23 Havoc Pennington + + * glib/gspawn.c (fork_exec_with_pipes): on success, close the + pipes from the child. Fix from Tim. + 2002-05-22 jacob berkman * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 4a018176..d9345429 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,8 @@ +2002-05-23 Havoc Pennington + + * glib/gspawn.c (fork_exec_with_pipes): on success, close the + pipes from the child. Fix from Tim. + 2002-05-22 jacob berkman * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 4a018176..d9345429 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,8 @@ +2002-05-23 Havoc Pennington + + * glib/gspawn.c (fork_exec_with_pipes): on success, close the + pipes from the child. Fix from Tim. + 2002-05-22 jacob berkman * m4macros/glib-gettext.m4 (AM_GLIB_WITH_NLS): fix tyop diff --git a/glib/gspawn.c b/glib/gspawn.c index bf152f46..d8ed1d91 100644 --- a/glib/gspawn.c +++ b/glib/gspawn.c @@ -1202,7 +1202,9 @@ fork_exec_with_pipes (gboolean intermediate_child, } /* Success against all odds! return the information */ - + close_and_invalidate (&child_err_report_pipe[0]); + close_and_invalidate (&child_pid_report_pipe[0]); + if (child_pid) *child_pid = pid;