diff options
author | Christopher Faylor <me@cgf.cx> | 2003-12-27 17:41:17 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2003-12-27 17:41:17 +0000 |
commit | e97377932b06f0993df95c7c7877474ec20ff74d (patch) | |
tree | e06f5299ce91c509ac8a34d9aa13226e5206f5e3 /winsup/cygwin/cygheap.cc | |
parent | fe861ce9344d7577a909fc2878b2e61483bf6107 (diff) | |
download | newlib-e97377932b06f0993df95c7c7877474ec20ff74d.zip newlib-e97377932b06f0993df95c7c7877474ec20ff74d.tar.gz newlib-e97377932b06f0993df95c7c7877474ec20ff74d.tar.bz2 |
* fhandler.h (fhandler_tty_slave::archetype): Make public.
(report_tty_counts): New macro. Use throughout for reporting tty use counts.
* dtable.cc (dtable::vfork_child_dup): Add debugging output for usecount
increment. Increment open_fhs if appropriate.
(dtable::vfork_parent_restore): "Close" artificially bumped ctty.
(dtable::vfork_child_fixup): Close ctty since it was bumped prior to vfork.
Save open_fhs around close since the closing of these handles has no effect on
the console.
* fhandler_tty.cc (fhandler_tty_slave::open): Reorganize calls to allow for
easier tracking of usecount modification.
(fhandler_tty_slave::open): Ditto.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r-- | winsup/cygwin/cygheap.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc index 16a95f4..54b645f 100644 --- a/winsup/cygwin/cygheap.cc +++ b/winsup/cygwin/cygheap.cc @@ -215,9 +215,7 @@ cygheap_init () 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); + report_tty_counts (cygheap->ctty, "inherited", "incremented ", "unchanged "); } } |