run ./NEWS ./README src/run.h src/run.c
cwilson@sourceware.org
cwilson@sourceware.org
Tue Aug 18 15:51:00 GMT 2009
CVSROOT: /cvs/cygwin-apps
Module name: run
Changes by: cwilson@sourceware.org 2009-08-18 15:51:05
Modified files:
. : NEWS README
src : run.h run.c
Log message:
Only create (and hide) a console if absolutely necessary.
* src/run.h: Test $target.exe before $target. Pass $target
name, as well as cmdline, to start_child. Pass argc by
reference to build_cmdline.
* src/run.c (target_is_gui): New function.
(have_console): New function:
(build_cmdline): Modify *argc and argv in-place, to remove
-wait if present, before constructing cmdline.
(WinMain): Ripple from run.h changes. If $target is GUI, then
do not call start_child nor worry about the console; instead,
launch $target directly using: if not -wait, a lobotomized call
to CreateProcess; if -wait, then _spawn with the modified argv.
(setup_invisible_console): Do nothing if already have console.
(configure_startupinfo): If we have a console, and have not
requested pipes, then ensure that stdio of child will be the
non-redirected CONOUT$ and CONIN$ of that console (avoids 100%
CPU issue).
(start_child): Change bHaveInvisConsole to bHaveConsole, and
initialize it using explicit test via have_console(). Refactor
W7 workaround. Only set bForceUsingPipes if DEBUG_FORCE_PIPES.
* NEWS: Update.
* README: UPdate.
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/run/NEWS.diff?cvsroot=cygwin-apps&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/run/README.diff?cvsroot=cygwin-apps&r1=1.4&r2=1.5
http://sourceware.org/cgi-bin/cvsweb.cgi/run/src/run.h.diff?cvsroot=cygwin-apps&r1=1.2&r2=1.3
http://sourceware.org/cgi-bin/cvsweb.cgi/run/src/run.c.diff?cvsroot=cygwin-apps&r1=1.8&r2=1.9
More information about the Cygwin-apps-cvs
mailing list