From 7147f0d71bba1d371eea1aefe7e9a3b124e4d8b6 Mon Sep 17 00:00:00 2001 From: cgf Date: Mon, 20 Mar 2006 01:16:39 +0000 Subject: [PATCH] * dcrt0.cc (dll_crt0_0): Oops. We need to bother with setting this in the fork/exec case. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/dcrt0.cc | 1 + 2 files changed, 6 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index a87f1945af..3e893bd742 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,10 @@ 2006-03-19 Christopher Faylor + * dcrt0.cc (dll_crt0_0): Oops. We need to bother with setting this in + the fork/exec case. + +2006-03-19 Christopher Faylor + * dcrt0.cc (dll_crt0_0): Don't bother with setting init_console_handler here since it will be set later when we discover if we have a ctty or not. diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 1362e7052a..de01d74353 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -742,6 +742,7 @@ dll_crt0_0 () } break; } + init_console_handler (myself->ctty >= 0); } user_data->resourcelocks->Init (); -- 2.11.0