diff options
author | Christopher Faylor <me@cgf.cx> | 2005-12-19 19:04:14 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-12-19 19:04:14 +0000 |
commit | 7a01aa546d49d670cb4c286752522850a81a2ccd (patch) | |
tree | 7478d811be0be21116d1d61f36accf8b0ccbfaca /winsup/cygwin/spawn.cc | |
parent | 7e958b2e6abfb332eb65df9100783b69508a3403 (diff) | |
download | cygnal-7a01aa546d49d670cb4c286752522850a81a2ccd.tar.gz cygnal-7a01aa546d49d670cb4c286752522850a81a2ccd.tar.bz2 cygnal-7a01aa546d49d670cb4c286752522850a81a2ccd.zip |
* fhandler.h (set_console_state_for_spawn): Add an argument to the declaration.
* fhandler_console.cc (set_console_state_for_spawn): Ditto for the definition.
Only set invisible console for non-cygwin process. Remove debugging leftover.
* spawn.cc (spawn_guts): Pass argument denoting whether this is a cygwin
process to set_console_state_for_spawn and only call this function when
exec'ing.
Diffstat (limited to 'winsup/cygwin/spawn.cc')
-rw-r--r-- | winsup/cygwin/spawn.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/spawn.cc b/winsup/cygwin/spawn.cc index df5cde10e..ba16ef743 100644 --- a/winsup/cygwin/spawn.cc +++ b/winsup/cygwin/spawn.cc @@ -583,8 +583,6 @@ spawn_guts (const char * prog_arg, const char *const *argv, sigproc_printf ("priority class %d", flags); flags |= CREATE_DEFAULT_ERROR_MODE | CREATE_SEPARATE_WOW_VDM; - set_console_state_for_spawn (); - if (mode == _P_DETACH) flags |= DETACHED_PROCESS; @@ -612,6 +610,7 @@ spawn_guts (const char * prog_arg, const char *const *argv, ProtectHandle (cygheap->pid_handle); else system_printf ("duplicate to pid_handle failed, %E"); + set_console_state_for_spawn (real_path.iscygexec ()); } /* Some file types (currently only sockets) need extra effort in the parent |