glib r7060 - in trunk: . glib
- From: tml svn gnome org
- To: svn-commits-list gnome org
- Subject: glib r7060 - in trunk: . glib
- Date: Thu, 19 Jun 2008 07:13:37 +0000 (UTC)
Author: tml
Date: Thu Jun 19 07:13:36 2008
New Revision: 7060
URL: http://svn.gnome.org/viewvc/glib?rev=7060&view=rev
Log:
2008-06-19 Tor Lillqvist <tml novell com>
Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()
* glib/gspawn-win32-helper.c (main): Write also the exit status of
the spawned process to the error report pipe. Patch by Hiroyuki
Ikezoe.
Modified:
trunk/ChangeLog
trunk/glib/gspawn-win32-helper.c
Modified: trunk/glib/gspawn-win32-helper.c
==============================================================================
--- trunk/glib/gspawn-win32-helper.c (original)
+++ trunk/glib/gspawn-win32-helper.c Thu Jun 19 07:13:36 2008
@@ -166,7 +166,6 @@
int handle;
int saved_errno;
int no_error = CHILD_NO_ERROR;
- int zero = 0;
gint argv_zero_offset = ARG_PROGRAM;
wchar_t **new_wargv;
int argc;
@@ -326,10 +325,7 @@
write_err_and_exit (child_err_report_fd, CHILD_SPAWN_FAILED);
write (child_err_report_fd, &no_error, sizeof (no_error));
- if (mode == P_NOWAIT)
- write (child_err_report_fd, &handle, sizeof (handle));
- else
- write (child_err_report_fd, &zero, sizeof (zero));
+ write (child_err_report_fd, &handle, sizeof (handle));
read (helper_sync_fd, &c, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]