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:
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index 6859e4335..16a95f441 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -212,6 +212,13 @@ cygheap_init ()
&& (set_process_privilege (SE_CREATE_GLOBAL_NAME, true) >= 0
|| GetLastError () == ERROR_NO_SUCH_PRIVILEGE)
? "Global\\" : "");
+ if (cygheap->ctty)
+ {
+ fhandler_console::open_fhs++;
+ debug_printf ("tty%d, open_fhs %d, arch usecount %d",
+ cygheap->ctty->get_ttyp ()->ntty,
+ fhandler_console::open_fhs, cygheap->ctty->usecount);
+ }
}
/* Copyright (C) 1997, 2000 DJ Delorie */