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/pinfo.cc | |
parent | fe861ce9344d7577a909fc2878b2e61483bf6107 (diff) | |
download | cygnal-e97377932b06f0993df95c7c7877474ec20ff74d.tar.gz cygnal-e97377932b06f0993df95c7c7877474ec20ff74d.tar.bz2 cygnal-e97377932b06f0993df95c7c7877474ec20ff74d.zip |
* 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/pinfo.cc')
-rw-r--r-- | winsup/cygwin/pinfo.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/winsup/cygwin/pinfo.cc b/winsup/cygwin/pinfo.cc index 92a9ea9aa..0472145f8 100644 --- a/winsup/cygwin/pinfo.cc +++ b/winsup/cygwin/pinfo.cc @@ -293,8 +293,7 @@ _pinfo::set_ctty (tty_min *tc, int flags, fhandler_tty_slave *arch) { arch->usecount++; fhandler_console::open_fhs++; - debug_printf ("tty%d, open_fhs %d, arch usecount %d", tc->ntty, - fhandler_console::open_fhs, arch->usecount); + report_tty_counts (cygheap->ctty, "ctty", "incremented ", ""); } } } |