summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/cygheap.cc
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index 8dde3dfe9..8a2a1f4dc 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -107,11 +107,7 @@ void
init_cygheap::close_ctty ()
{
debug_printf ("closing cygheap->ctty %p", cygheap->ctty);
- /* FIXME: Support for console-as-ctty is limited due to the fact that
- the console doesn't use archetypes - even though they could and should */
- if (cygheap->ctty->get_ttyp ()
- && cygheap->ctty->get_ttyp ()->ntty != TTY_CONSOLE)
- cygheap->ctty->close ();
+ cygheap->ctty->close_with_arch ();
cygheap->ctty = NULL;
}