* cygheap.cc (init_cygheap::manage_console_count): Revert previous change.
Handle this a different way. * external.cc (cygwin_internal): Accommodate extra hook_or_detect_cygwin argument. * hookapi.cc (cygwin_internal): Fill in subsys variable with the subsystem of the executable. * spawn.cc (av::iscui): New variable. (spawn_guts): Hide window when we don't have a console and this isn't NT/XP/2003. (av::fixup): Set iscui flag. * winsup.h (hook_or_detect_cygwin): Accommodate extra argument.
This commit is contained in:
@@ -295,7 +295,8 @@ cygwin_internal (cygwin_getinfo_types t, ...)
|
||||
{
|
||||
const char *name = va_arg (arg, const char *);
|
||||
const void *hookfn = va_arg (arg, const void *);
|
||||
return (unsigned long) hook_or_detect_cygwin (name, hookfn);
|
||||
WORD subsys;
|
||||
return (unsigned long) hook_or_detect_cygwin (name, hookfn, subsys);
|
||||
}
|
||||
case CW_ARGV:
|
||||
{
|
||||
|
Reference in New Issue
Block a user