Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2006-03-23 19:52:34 +0300
committerChristopher Faylor <me@cgf.cx>2006-03-23 19:52:34 +0300
commit3eb92a58f851da461193a1bbb8b577868355cfb6 (patch)
tree28ce4a498b964b307dc3226b7aa34c1a349e1dee /winsup/cygwin/dtable.cc
parentdccd2abec6c33e0b020ac6ca73f4a74c35833838 (diff)
* dcrt0.cc (child_info_spawn::handle_spawn): Don't initialize the console
handler here. * dtable.cc (dtable::stdio_init): Initialize console handler here.
Diffstat (limited to 'winsup/cygwin/dtable.cc')
-rw-r--r--winsup/cygwin/dtable.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/cygwin/dtable.cc b/winsup/cygwin/dtable.cc
index 8996e8587..74ce74b67 100644
--- a/winsup/cygwin/dtable.cc
+++ b/winsup/cygwin/dtable.cc
@@ -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);