* dcrt0.cc (child_info_spawn::handle_spawn): Don't initialize the console

handler here.
* dtable.cc (dtable::stdio_init): Initialize console handler here.
This commit is contained in:
Christopher Faylor
2006-03-23 16:52:34 +00:00
parent dccd2abec6
commit 3eb92a58f8
3 changed files with 10 additions and 2 deletions

View File

@@ -134,7 +134,10 @@ dtable::stdio_init ()
in case they're missed. */
if (myself->cygstarted || ISSTATE (myself, PID_CYGPARENT))
return;
{
init_console_handler (myself->ctty >= 0);
return;
}
HANDLE in = GetStdHandle (STD_INPUT_HANDLE);
HANDLE out = GetStdHandle (STD_OUTPUT_HANDLE);