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
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.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/dcrt0.cc1
-rw-r--r--winsup/cygwin/dtable.cc5
3 files changed, 10 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 8ec6f3e1f..2a727642c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,11 @@
2006-03-23 Christopher Faylor <cgf@timesys.com>
+ * dcrt0.cc (child_info_spawn::handle_spawn): Don't initialize the
+ console handler here.
+ * dtable.cc (dtable::stdio_init): Initialize console handler here.
+
+2006-03-23 Christopher Faylor <cgf@timesys.com>
+
* sigproc.cc (sigalloc): Don't set SA_RESTART here.
* signal.cc (_SA_NORESTART): New flag.
(sigaction_worker): New function, derived from sigaction. Don't set
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc
index 971954fb3..1df274c02 100644
--- a/winsup/cygwin/dcrt0.cc
+++ b/winsup/cygwin/dcrt0.cc
@@ -693,7 +693,6 @@ child_info_spawn::handle_spawn ()
old_title = strcpy (title_buf, moreinfo->old_title);
cfree (moreinfo->old_title);
}
- init_console_handler (myself->ctty >= 0);
}
void __stdcall
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);