1. 07 Jul, 2010 1 commit
  2. 22 Aug, 2009 1 commit
  3. 25 Sep, 2008 1 commit
    • Tor Lillqvist's avatar
      Just ignore the child_setup function, never call it. The is no situation · 0ed8b94b
      Tor Lillqvist authored
      2008-09-25  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gspawn-win32.c (do_spawn_with_pipes) (do_spawn_directly):
      	Just ignore the child_setup function, never call it. The is no
      	situation in which it could be useful on Windows. Do print a
      	warning, like before.
      
      	* glib/gspawn.c (g_spawn_async_with_pipes): Corresponding change
      	in documentation.
      
      
      svn path=/trunk/; revision=7540
      0ed8b94b
  4. 19 Sep, 2008 1 commit
    • Tor Lillqvist's avatar
      glib/gutils.c (_glib_get_dll_directory) Be a bit less restrictive, look · bc8e1dd8
      Tor Lillqvist authored
      2008-09-19  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gutils.c (_glib_get_dll_directory)
      	* glib/gspawn-win32.c (do_spawn_with_pipes): Be a bit less
      	restrictive, look for the helper programs in the same folder where
      	the GLib DLL is, not necessarily in a "bin" subfolder of the top
      	GLib installation folder.
      
      
      svn path=/trunk/; revision=7511
      bc8e1dd8
  5. 04 Aug, 2008 1 commit
    • Tor Lillqvist's avatar
      glib/giowin32.c glib/gmain.c glib/gspawn-win32.c Change gssize casts · 0e2384fa
      Tor Lillqvist authored
      2008-08-04  Tor Lillqvist  <tml@novell.com>
      
      	* glib/giowin32.c
      	* glib/gmain.c
      	* glib/gspawn-win32.c
      	* glib/gspawn-win32-helper.c: Change gssize casts introduced on
      	2008-07-28 to gintptr casts now that we have that. gssize is as
      	such the same as gintptr on both 32- and 64-bit Windows, but the
      	gintptr name indicates that it is used to hold pointers, i.e. also
      	HANDLEs.
      
      
      svn path=/trunk/; revision=7306
      0e2384fa
  6. 28 Jul, 2008 1 commit
    • Tor Lillqvist's avatar
      Fix problems on 64-bit Windows. Avoid warnings, some of which indicated · a3fa7485
      Tor Lillqvist authored
      2008-07-28  Tor Lillqvist  <tml@novell.com>
      
      	Fix problems on 64-bit Windows. Avoid warnings, some of which
      	indicated actual problems, some which were just annoyances. 
      
      	Where casts to an integer type are needed for pointers, use
      	gssize. Technically intptr_t would be the more proper type, but we
      	still want to be compilable with MSVS6 and 7 which don't have
      	intptr_t. MSVS8 and 9 do have intptr_t, but in <crtdefs.h>, not
      	<stdint.h>.
      
      	Use %p to print out handles. Use gssize casts when assigning
      	GPollFD::fd fields.
      
      	Use G_GSIZE_FORMAT when printing size_t values.
      	
      	* configure.in: Define automake conditional G_OS_WIN32_X64 which
      	is true on Win64.
      
      	* glib/giochannel.h: Use slightly different prototype for
      	g_io_channel_win32_new_messages() on Win64 with gsize instead of
      	guint.
      
      	* glib/giowin32.c
      	* glib/gmain.c
      	* glib/gspawn-win32.c
      	* tests/testglib.c: Generic changes as described above.
      
      	* glib/gmain.h: Don't bother mentioning GIMP in comment.
      
      	* glib/grel.c (tuple_hash_2): Use all bits of pointer.
      
      	* glib/gspawn-win32.c
      	* glib/gspawn-win32-helper.c: Use gssize types in the
      	communication between parent and helper process, so that we can
      	pass process handles, which are pointers, also on Win64.
      
      	* glib/gtimer.c (g_time_val_to_iso8601): time_t is 64 bits on
      	Win64 so we can't pass the address of a GTimeVal::tv_sec which is
      	a long directly to gmtime(). On the other hand, changing
      	GTimeVal::tv_sec to be a gint64 on Win64 is not really feasible
      	either, as that would then require changes in much code that uses
      	GTimeVals.
      
      	* glib/gspawn-win32.c
      	* glib/Makefile.am: Call the helper programs
      	gspawn-win64-helper.exe and gspawn-win64-helper-console.exe on
      	Win64, to avoid potential risk of running a 32-bit version of the
      	helper.
      
      
      svn path=/trunk/; revision=7260
      a3fa7485
  7. 27 Jul, 2008 1 commit
    • Tor Lillqvist's avatar
      glib/glib.symbols glib/gconvert.c glib/gdir.c glib/gfileutils.c · 80ecc308
      Tor Lillqvist authored
      2008-07-27  Tor Lillqvist  <tml@novell.com>
      
      	* glib/glib.symbols
      	* glib/gconvert.c
      	* glib/gdir.c
      	* glib/gfileutils.c
      	* glib/giowin32.c
      	* glib/gspawn-win32.c
      	* glib/gutils.c
      	* glib/gwin32.c: Bypass the Windows "ABI compatibility" symbols on
      	_WIN64. As there hasn't been any widely deployed 64-bit Windows
      	builds of the really old GLib (pre-2.8.1) versions those refer to,
      	there is no need to have the "ABI compatibility" versions in the
      	DLL.
      
      	* glib/makegalias.pl: Handle #ifndef _WIN64: Just output it, too.
      
      
      svn path=/trunk/; revision=7257
      80ecc308
  8. 16 Jun, 2008 1 commit
  9. 03 Mar, 2008 1 commit
    • Tor Lillqvist's avatar
      Must set the GError also in the unexpected EOF case. · 5ec93805
      Tor Lillqvist authored
      2008-03-03  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gspawn-win32.c (read_helper_report): Must set the GError
      	also in the unexpected EOF case.
      	(do_spawn_with_pipes): Must protect also new_argv[0].
      
      
      svn path=/trunk/; revision=6612
      5ec93805
  10. 24 Feb, 2008 2 commits
    • Tor Lillqvist's avatar
      Guard against _glib_get_installation_directory() returning NULL. In that · 96c7abe7
      Tor Lillqvist authored
      2008-02-24  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gspawn-win32.c: Guard against
      	_glib_get_installation_directory() returning NULL. In that
      	case, just use the name of the helper process executable
      	without path.
      
      
      svn path=/trunk/; revision=6576
      96c7abe7
    • Tor Lillqvist's avatar
      New internal function. · 17640e78
      Tor Lillqvist authored
      2008-02-24  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gutils.c (_glib_get_installation_directory): New internal function.
      
      	* glib/gspawn-win32.c: When spawning the helper process, use an
      	explicit full path. (#518292)
      
      	* glib/gspawn-win32.c
      	* glib/gspawn-win32-helper.c: Fix race condition when using the
      	helper process: When the helper process writes the handle of the
      	actual started user process to the parent process, it must be
      	duplicated in the parent process with DuplicateHandle() so that it
      	is a valid handle in that process. However, if the helper process
      	has happened to exit before the DuplicateHandle() call, the
      	duplication will fail. Thus we must synchronise the helper
      	process's exit. Use another pipe for this.
      
      	Take care not to inherit the writing end of this pipe to the
      	helper process. Also, in the helper process, take care not to
      	inherit either of the pipes used for communication with the parent
      	process to the started user process.
      
      
      svn path=/trunk/; revision=6575
      17640e78
  11. 13 May, 2007 1 commit
    • Tor Lillqvist's avatar
      Drop the pipe() macro. Defining macros outside of its namespace that look · 20d47d6f
      Tor Lillqvist authored
      2007-05-13  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gwin32.h: Drop the pipe() macro. Defining macros outside of
      	its namespace that look like POSIX functions is not GLib's
      	business in my opinion. This means pipe()-using code that has
      	relied on this definition will need changing to call _pipe() on
      	Windows, and make the decision itself on what size pipe buffer to
      	use, and whether to use text or binary mode, and whether the pipe
      	handles should be inheritable or not.
      
      	* glib/gspawn-win32.c (make_pipe): Use _pipe() instead of pipe().
      
      
      svn path=/trunk/; revision=5490
      20d47d6f
  12. 30 Sep, 2006 1 commit
  13. 29 Aug, 2006 1 commit
    • Tor Lillqvist's avatar
      Remove support for Windows 9x/ME, as will be done also in Pango and GTK+. · da422c00
      Tor Lillqvist authored
      2006-08-29  Tor Lillqvist  <tml@novell.com>
      
      	Remove support for Windows 9x/ME, as will be done also in Pango
      	and GTK+. GTK+ hasn't worked on Win9x since 2.6 or 2.8 anyway, so
      	it's pretty pointless to keep the Win9x code in here either. If
      	somebody is interested, the code can always be found in older GLib
      	versions, and in CVS.
      
      	* glib/gdir.c
      	* glib/gfileutils.c
      	* glib/gspawn-win32-helper.c
      	* glib/gspawn-win32.c
      	* glib/gstdio.c
      	* glib/gutils.c
      	* glib/gwin32.c
      	* glib/gwin32.h: Remove the G_WIN32_IS_NT_BASED() and
      	G_WIN32_HAVE_WIDECHAR_API() tests and their false (Win9x)
      	branches, and any variables or static functions used only by the
      	Win9x branches.
      
      	* glib/gwin32.c (g_win32_windows_version_init): Call g_error() if
      	run on Win9x.
      da422c00
  14. 09 May, 2006 1 commit
  15. 04 Apr, 2006 1 commit
    • Matthias Clasen's avatar
      Move short_month_names and long_month_names to bss. · b58fb2bd
      Matthias Clasen authored
      2006-04-04  Matthias Clasen  <mclasen@redhat.com>
      
              * glib/gdate.c: Move short_month_names and long_month_names
              to bss.
      
              * glib/gspawn-win32.c (g_spawn_error_quark):
              * glib/gspawn.c (g_spawn_error_quark):
              * glib/gshell.c (g_shell_error_quark):
              * glib/gmarkup.c (g_markup_error_quark):
              * glib/goption.c (g_option_error_quark):
              * glib/gkeyfile.c (g_key_file_error_quark):
              * glib/giochannel.c (g_io_channel_error_quark):
              * glib/gfileutils.c (g_file_error_quark):
              * glib/gconvert.c (g_convert_error_quark):
              * glib/gbookmarkfile.c (g_bookmark_file_error_quark):
              * glib/gthread.c (g_thread_error_quark): No point in making
              the error path fast by caching quarks.
      
              * glib/gbookmarkfile.c: Make the parser struct const.
      b58fb2bd
  16. 01 Jan, 2006 1 commit
    • Tor Lillqvist's avatar
      Set the GIOChannels for stdout and stderr to unbuffered. Otherwise the · 07e1d54f
      Tor Lillqvist authored
      2006-01-01  Tor Lillqvist  <tml@novell.com>
      
      	* glib/gspawn-win32.c (g_spawn_sync_utf8): Set the GIOChannels for
      	stdout and stderr to unbuffered. Otherwise the giochannel layer
      	will try to read from them regardless whether the
      	g_io_channel_win32_poll() call here has indicated
      	readability or not. (#325310)
      07e1d54f
  17. 07 Sep, 2005 1 commit
    • Tor Lillqvist's avatar
      Create also a console version of the gspawn-win32-helper program, · 17045b64
      Tor Lillqvist authored
      2005-09-07  Tor Lillqvist  <tml@novell.com>
      
      	* glib/Makefile.am: Create also a console version of the
      	gspawn-win32-helper program, gspawn-win32-helper-console.exe.
      	It's otherwise identical to gspawn-win32-helper.exe, except marked
      	as a console application (linked without the -mwindows option).
      
      	* glib/gspawn-win32.c (do_spawn_directly, do_spawn_with_pipes):
      	Drop the dont_wait parameter. Its truth value correlated 100% with
      	the NULLness of the exit_status parameter anyway, so it's enough
      	to check whether exit_status is NULL. Invert the sense of the
      	dont_return_handle parameter and rename it to do_return_handle, to
      	make the code easier to read by avoiding double negations.
      
      	(g_spawn_sync_utf8, g_spawn_async_with_pipes_utf8): Modify calls
      	to do_spawn_with_pipes() accordingly.
      
      	(do_spawn_with_pipes): If we have a console, use the console
      	version of the helper program, otherwise use the GUI one. This
      	avoids extra console windows opening up in some situations. (In
      	case a console application uses the GUI gspawn-win32-helper.exe to
      	spawn another console application we would get a separate console
      	for the spawned console application).
      
      	* glib-zip.in: Distribute also gspawn-win32-helper-console.exe.
      17045b64
  18. 26 Aug, 2005 1 commit
  19. 25 Aug, 2005 1 commit
    • Tor Lillqvist's avatar
      Make also the g_spawn*() functions take parameters in the GLib file name · 41e833ae
      Tor Lillqvist authored
      2005-08-25  Tor Lillqvist  <tml@novell.com>
      
      	Make also the g_spawn*() functions take parameters in the GLib
      	file name encoding, i.e. UTF-8, on Windows. Has no impact on Unix
      	API or ABI. Like the other GLib API that was earlier changed to
      	use UTF-8 on Windows, the names of the functions that take UTF-8
      	have _utf8 suffixes added by using preprocessor macros in the
      	header file. The old names are kept for functions with the old
      	behaviour, taking parameters in the system codepage, for DLL ABI
      	stability.
      
      	* glib/gspawn.h: On Win32 add the suffix _utf8 to the names of the
      	g_spawn*() functions.
      
      	* glib/gspawn-win32.c: Use wide-char API on NT-based
      	Windows. Convert parameters from UTF-8 to wide chars (NT) or
      	system codepage (Win9x) and call the C library _wspawn*() or
      	spawn*() functions respectvely. Add DLL ABI stability versions
      	that take parameters in the system codepage.
      
      	* glib/gspawn-win32-helper.c: On NT-based Windows use the
      	wide-char versions of argv and envp, and use wide-char API to
      	change directory and spawn the program to run. Remove the verbose
      	debugging output, it was too complex to modify for the wide-char
      	features. (Just add temporary debugging printouts if needed, no
      	need to have them permanently in the source.)
      
      	* glib/gspawn.c: Corresponding documentation updates.
      
      	* glib/glib.symbols: Corresponding changes: Mark the ABI stability
      	symbols as PRIVATE, add the new _utf8-suffixed ones.
      41e833ae
  20. 20 Mar, 2005 1 commit
  21. 14 Mar, 2005 1 commit
    • Matthias Clasen's avatar
      Make PLT-reduction work with gcc4, and don't include everything in · 608a31b9
      Matthias Clasen authored
      2005-03-13  Matthias Clasen  <mclasen@redhat.com>
      
      	Make PLT-reduction work with gcc4, and don't include
      	everything in galias.h:
      
      	* glib/glib.symbols: Group symbols by header and source file.
      	* glib/makegalias.pl: Protect definitions by the same
      	preprocessor symbols used to guard the headers. Move
      	the alias declarations to a separate file which is
      	produced when calling makegalias.pl -def
      	* glib/Makefile.am (galiasdef.c): Add a rule to generate this
      	file.
      	* glib/*.c: Include galias.h after the other GLib headers,
      	include galiasdef.c at the bottom.
      608a31b9
  22. 11 Dec, 2004 1 commit
  23. 16 Sep, 2004 1 commit
  24. 10 Mar, 2004 1 commit
  25. 07 Mar, 2004 1 commit
  26. 01 Mar, 2004 1 commit
    • Owen Taylor's avatar
      Patch from J. Ali Harlow · 38cbfaeb
      Owen Taylor authored
      Mon Mar  1 15:39:57 2004  Owen Taylor  <otaylor@redhat.com>
      
             Patch from J. Ali Harlow
      
              * configure.in: Use void * not HANDLE for GPid on win32.
      
              * glib/gspawn.[ch] glib/gspawn-win32.[ch] glib/glib.def:
              Add g_spawn_close_pid().
      
              * glib/gspawn.[ch]: Make g_spawn functions take
              GPid * instead if int * (GPid == int on unix, will
              produce compile warnings until fixed on Win32.)
      
              * tests/child-test.c: Make the test a little more
              inappropriately verbose.
      
              * glib/gmain.c: Add some documentation warnings about
              not closing @pid while the source is active.
      38cbfaeb
  27. 30 Sep, 2003 1 commit
    • Tor Lillqvist's avatar
      Call protect_argv() in do_spawn() instead of in do_spawn_with_pipes() so · d007fe41
      Tor Lillqvist authored
      2003-09-30  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gspawn-win32.c (do_spawn): Call protect_argv() in
      	do_spawn() instead of in do_spawn_with_pipes() so that we can use
      	the original argv[0] as the program file name parameter to
      	spawnv() in the shortcut (doing without helper process)
      	code. Fixes problem if GIMP 1.3 was installed in a path with
      	spaces in the name.
      d007fe41
  28. 31 Jul, 2003 1 commit
    • Tor Lillqvist's avatar
      When possible, manage without the helper process. (Part of the · cdf72b09
      Tor Lillqvist authored
      2003-07-31  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gspawn-win32.c: When possible, manage without the helper
      	process. (Part of the enhancements outlined in #98737.) Speeds up
      	GIMP 1.3's first-time-run plug-in query phase a lot.
      
      	Plug a file descriptor (and thus Win32 handle) leak: close the
      	read end of the child error report pipe after use.
      cdf72b09
  29. 30 Mar, 2003 1 commit
    • Matthias Clasen's avatar
      Optimize the common cases (init == NULL or init == "") a bit. replace uses · 6710fd6e
      Matthias Clasen authored
      2003-03-30  Matthias Clasen  <maclas@gmx.de>
      
      	* glib/gstring.c (g_string_new): Optimize the common cases
      	(init == NULL or init == "") a bit.
      	* glib/gmarkup.c, glib/gmessages.c, glib/gscanner.c,
      	glib/gshell.c, glib/gspawn-win32-helper.c, glib/gspawn-win32.c,
      	glib/gspawn.c, gobject/gvaluetransform.c: replace uses of
      	g_string_new ("") by g_string_new (NULL).  (#106973, Morten Welinder)
      6710fd6e
  30. 04 Feb, 2003 1 commit
    • Tor Lillqvist's avatar
      Fix typo: Should be SOCKET_ERROR, not SO_ERROR. Noticed by Daniel · 5d48d565
      Tor Lillqvist authored
      2003-02-04  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/giowin32.c (g_io_channel_unix_new): Fix typo: Should be
      	SOCKET_ERROR, not SO_ERROR. Noticed by Daniel Kaufmann.
      
      	Merge from stable branch:
      
      	Fix for bug #104014, reported by Alex Shaduri:
      
      	* glib/gspawn-win32.c (protect_argv): New function. Add
      	double-quotes around argv elements that need it, and escape
      	embedded double-quotes with backslash.
      	(do_spawn_with_pipes) Call protect_argv().
      
      	* glib/gspawn-win32-helper.c (WinMain): Call protect_argv().
      
      	* glib/gspawn.c (g_spawn_async_with_pipes): Document argument
      	vector vs. command line details on Win32.
      	(g_spawn_command_line_sync): Improve documentation about
      	backslashes in the command line on Windows.
      5d48d565
  31. 16 Dec, 2002 1 commit
  32. 04 Dec, 2002 1 commit
  33. 21 Nov, 2002 1 commit
    • Matthias Clasen's avatar
      Include a printf implementation supporting C99 snprintf and SUS · bc54ea6e
      Matthias Clasen authored
      	positional parameters:  (#79488)
      
      	* glib/gstrfuncs.c:
      	* glib/gspawn-win32.c:
      	* glib/gscanner.c:
      	* glib/gconvert.c:
      	* glib/gbacktrace.c: Use _g_printf wrappers.
      
      	* glib/gutils.c (g_vsnprintf): Simplify, since we can assume C99
      	snprintf semantics now.
      
      	* glib/gmessages.c (printf_string_upper_bound): No longer needed,
      	since we can assume C99 snprintf semantics now.
      	(g_logv): Simplify.
      
      	* acinclude.m4 (AC_FUNC_PRINTF_UNIX98): New macro to check wether
      	printf supports SUS positional parameters.
      
      	* configure.in: New option --enable-included-printf to force
      	compilation of trio; otherwise trio is compiled if the system
      	printf misses either C99 snprintf semantics of SUS positional
      	parameters.
      
      	* glib/Makefile.am (SUBDIRS): Conditionally compile trio.
      	(libglib_2_0_la_SOURCES): Add gprintf.c and gprintfint.h.
      	(glibsubinclude_HEADERS): Add gprintf.h.
      
      	* glib/gprintfint.h: New private wrapping either system printf
      	or trio printf variants in _g_printf wrappers for use inside glib.
      
      	* glib/gprintf.h: New public header declaring g_printf variants.
      	* glib/gprintf.c: Corresponding implementations.
      
      	* glib/trio/*: New directory, containing the trio-1.9 sources.
      
      	* glib/tmpl/string_utils.sgml: Add note on including gprintf.h,
      	move some docs inline.
      
      	* glib/glib-sections.txt: Add g_printf, g_vprintf, g_fprintf,
      	g_vfprintf, g_sprintf, g_vsprintf.
      bc54ea6e
  34. 18 Nov, 2002 1 commit
    • Tor Lillqvist's avatar
      Do handle G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If · a79b8073
      Tor Lillqvist authored
      2002-11-18  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gspawn-win32.c (do_spawn_with_pipes): Do handle
      	G_SPAWN_DO_NOT_REAP_CHILD after all, similarily as on Unix. If the
      	flag is not set, don't call DuplicateHandle() on the handle
      	returned by the helper process, and set the "child pid"	returned
      	to the caller to zero. Close the handle to the helper process in
      	all cases.
      
      	* glib/gspawn.c (g_spawn_async_with_pipes): Document Windows
      	behaviour of G_SPAWN_DO_NOT_REAP_CHILD.
      a79b8073
  35. 17 Nov, 2002 2 commits
    • Tor Lillqvist's avatar
      [Win32] Fix the asynchronous g_spawn* to return the process handle of the · 0b4bcbe1
      Tor Lillqvist authored
      2002-11-18  Tor Lillqvist  <tml@iki.fi>
      
      	[Win32] Fix the asynchronous g_spawn* to return the process handle
      	of the started program properly. (Note: not the process id. The
      	spawn*() functions in the C runtime return the created process's
      	handle. There doesn't seem to be any way to get the process id of
      	a child process if you have the handle. But then, the process
      	handle usually is more useful anyway.)
      
      	* glib/gspawn-win32-helper.c (WinMain): If the spawning of the
      	child process succeeded, and if asynchronous spawn (P_NOWAIT),
      	write the result handle up to the parent process, waiting to read
      	it in do_spawn_with_pipes().
      
      	* glib/gspawn-win32.c (do_spawn): Use return value from spawning
      	the helper. If it is -1 the helper wasn't found or couldn't be run
      	for some reason. Otherwise it is the helper's process handle.
      
      	(g_spawn_async_with_pipes): Pass the child_pid parameter on to
      	do_spawn_with_pipes().
      
      	(do_spawn_with_pipes): Take also a child_pid parameter. If
      	do_spawn() returned -1, fail immediately. Otherwise make the
      	handle passed to us by the helper process into a handle valid in
      	this process by calling DuplicateHandle().
      0b4bcbe1
    • Tor Lillqvist's avatar
      Ignore the G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully · 1f04f2cc
      Tor Lillqvist authored
      2002-11-17  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gspawn-win32.c (g_spawn_async_with_pipes): Ignore the
      	G_SPAWN_DO_NOT_REAP_CHILD flag, can't be meaninfully implemented
      	on Windows, at least not now. Always pass dont_wait as TRUE to
      	do_spawn_with_pipes(). The semantics of the dont_wait parameter is
      	very different from the semantics of the intermediate_child
      	parameter to fork_exec_with_pipes() in the Unix version. This
      	fixes a serious bug, g_spawn_async() in fact behaved
      	synchronously.
      
      	(do_spawn_with_pipes, do_spawn): Rename from
      	fork_exec_with_pipes() and do_exec(), those names were from the
      	Unix bersion, and misleading.
      
      	(close_and_invalidate): Don't try to close invalid fds.
      
      	* glib/gspawn.c (g_spawn_async_with_pipes): Add warning about
      	Windows behaviour. There is no fork(), so the child_setup()
      	function is in fact called in the parent.
      
      	* glib/gspawn-win32-helper.c (WinMain): Insert spaces in argv
      	debugging output.
      
      	* tests/spawn-test-win32-gui.c: New file. Test program to be
      	linked as a GUI application. Behaves differently depending on how
      	invoked (by spawn-test).
      
      	* tests/spawn-test.c (run_tests): On Win32, run the
      	spawn-test-win32-gui program, too, in several ways, synchronously
      	and asynchronously.
      
      	* tests/Makefile.am: Corresponding change.
      1f04f2cc
  36. 19 Apr, 2002 1 commit
    • Tor Lillqvist's avatar
      Add Windows-specific note to the gtk-doc comment. · 00bc4e28
      Tor Lillqvist authored
      2002-04-19  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gspawn.c (g_spawn_command_line_sync): Add Windows-specific
      	note to the gtk-doc comment.
      
      	* glib/gspawn-win32.c: Remove the copy-pasted gtk-doc comment
      	blocks. It's enough to have them in gspawn.c.
      00bc4e28
  37. 19 Feb, 2002 1 commit
    • Tor Lillqvist's avatar
      Include <config.h> first here, too. Use g_io_channel_read_chars() instead · c7e635a9
      Tor Lillqvist authored
      2002-02-19  Tor Lillqvist  <tml@iki.fi>
      
      	* glib/gspawn-win32.c: Include <config.h> first here, too. Use
      	g_io_channel_read_chars() instead of (deprecated)
      	g_io_channel_read(). Set encoding to NULL for the channels used
      	for the pipes from the child.
      
      	* glib/giowin32.c (buffer_read): Do return G_IO_STATUS_EOF when
      	EOF has been reached. Otherwise, with the above change to
      	gspawn-win32.c, spawn-test hangs.
      c7e635a9
  38. 17 Dec, 2001 1 commit