Call set_cloexec() with the right parameters. (#386252, Guillaume

2006-12-15  Matthias Clasen  <mclasen@redhat.com>

        * glib/gspawn.c (do_exec): Call set_cloexec() with
        the right parameters.  (#386252, Guillaume Desmottes)
This commit is contained in:
Matthias Clasen
2006-12-15 18:27:51 +00:00
committed by Matthias Clasen
parent af475972c6
commit 0047db2bf0
2 changed files with 6 additions and 1 deletions

View File

@@ -928,7 +928,7 @@ do_exec (gint child_err_report_fd,
else
{
/* We need to do child_err_report_fd anyway */
set_cloexec (child_err_report_fd);
set_cloexec (NULL, child_err_report_fd);
}
/* Redirect pipes as required */