mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
Bug 539074 - Cannot get exit status with g_spawn_command_line_sync()
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. svn path=/branches/glib-2-16/; revision=7061
This commit is contained in:
parent
9aa9ad2989
commit
0f1bae710c
@ -1,3 +1,11 @@
|
||||
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.
|
||||
|
||||
2008-06-07 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* glib/gstdio.c (g_access): Define X_OK if necessary (MSVC).
|
||||
|
@ -161,7 +161,6 @@ WinMain (struct HINSTANCE__ *hInstance,
|
||||
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;
|
||||
@ -321,10 +320,7 @@ WinMain (struct HINSTANCE__ *hInstance,
|
||||
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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user