diff options
Diffstat (limited to 'winsup/cygwin/dcrt0.cc')
-rw-r--r-- | winsup/cygwin/dcrt0.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index 0228c3275..c3f4eace2 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -768,6 +768,7 @@ dll_crt0_0 () /* Initialize events */ events_init (); + tty_list::init_session (); cygheap->cwd.init (); @@ -867,9 +868,8 @@ dll_crt0_1 (void *) if (!threadfunc_ix) system_printf ("internal error: couldn't determine location of thread function on stack. Expect signal problems."); - /* Connect to tty. */ - tty_init (); + tty::init_session (); if (!__argc) { @@ -1110,7 +1110,7 @@ do_exit (int status) if (exit_state < ES_TTY_TERMINATE) { exit_state = ES_TTY_TERMINATE; - tty_terminate (); + cygwin_shared->tty.terminate (); } myself.exit (n); |