+2005-05-20 Federico Mena Quintero <federico@ximian.com>
+
+ Merged from glib-2-6:
+
+ * glib/gspawn.c (g_spawn_command_line_sync): Clarify the meaning
+ of exit_status(); it's not the return code from the child, but
+ rather the waitpid() status.
+
2005-05-18 Matthias Clasen <mclasen@redhat.com>
* glib/gunidecomp.c: Correct the end of the Hangul
+2005-05-20 Federico Mena Quintero <federico@ximian.com>
+
+ Merged from glib-2-6:
+
+ * glib/gspawn.c (g_spawn_command_line_sync): Clarify the meaning
+ of exit_status(); it's not the return code from the child, but
+ rather the waitpid() status.
+
2005-05-18 Matthias Clasen <mclasen@redhat.com>
* glib/gunidecomp.c: Correct the end of the Hangul
+2005-05-20 Federico Mena Quintero <federico@ximian.com>
+
+ Merged from glib-2-6:
+
+ * glib/gspawn.c (g_spawn_command_line_sync): Clarify the meaning
+ of exit_status(); it's not the return code from the child, but
+ rather the waitpid() status.
+
2005-05-18 Matthias Clasen <mclasen@redhat.com>
* glib/gunidecomp.c: Correct the end of the Hangul
+2005-05-20 Federico Mena Quintero <federico@ximian.com>
+
+ Merged from glib-2-6:
+
+ * glib/gspawn.c (g_spawn_command_line_sync): Clarify the meaning
+ of exit_status(); it's not the return code from the child, but
+ rather the waitpid() status.
+
2005-05-18 Matthias Clasen <mclasen@redhat.com>
* glib/gunidecomp.c: Correct the end of the Hangul
* @user_data: user data for @child_setup
* @standard_output: return location for child output
* @standard_error: return location for child error messages
- * @exit_status: child exit status, as returned by waitpid()
+ * @exit_status: return location for child exit status, as returned by waitpid()
* @error: return location for error
*
* Executes a child synchronously (waits for the child to exit before returning).
* @command_line: a command line
* @standard_output: return location for child output
* @standard_error: return location for child errors
- * @exit_status: return location for child exit status
+ * @exit_status: return location for child exit status, as returned by waitpid()
* @error: return location for errors
*
* A simple version of g_spawn_sync() with little-used parameters
* implications, so consider using g_spawn_sync() directly if
* appropriate. Possible errors are those from g_spawn_sync() and those
* from g_shell_parse_argv().
+ *
+ * If @exit_status is non-%NULL, the exit status of the child is stored there as
+ * it would be returned by waitpid(); standard UNIX macros such as WIFEXITED()
+ * and WEXITSTATUS() must be used to evaluate the exit status.
*
* On Windows, please note the implications of g_shell_parse_argv()
* parsing @command_line. Space is a separator, and backslashes are