Create also a console version of the gspawn-win32-helper program,
authorTor Lillqvist <tml@novell.com>
Wed, 7 Sep 2005 10:10:49 +0000 (10:10 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Wed, 7 Sep 2005 10:10:49 +0000 (10:10 +0000)
commit17045b64d3627dd4b9ebc5454b18137e97fbedb2
treed9f56c1c6193a2911cc159a17a1bbb65b8131f16
parent81eb80112fdba3b18fd2cf8942ebdf460e8416ad
Create also a console version of the gspawn-win32-helper program,

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.
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
glib-zip.in
glib/Makefile.am
glib/gspawn-win32.c