* fhandler_tty.cc (fhandler_tty_slave::close): Revert previous change.

This commit is contained in:
Corinna Vinschen 2010-04-02 16:16:53 +00:00
parent baa671ea26
commit 7c972c6354
2 changed files with 6 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2010-04-02 Corinna Vinschen <corinna@vinschen.de>
* fhandler_tty.cc (fhandler_tty_slave::close): Revert previous change.
2010-04-02 Christopher Faylor <me+cygwin@cgf.cx>
* select.h (select_pipe_info::add_watch_handle): Delete declaration.

View File

@ -629,11 +629,10 @@ fhandler_tty_slave::close ()
close this normally. cgf 2006-05-20 */
cygheap->manage_console_count ("fhandler_tty_slave::close", -1);
if (archetype)
archetype->usecount--;
report_tty_counts (this, "closed", "");
if (archetype && archetype->usecount)
if (archetype->usecount)
{
#ifdef DEBUGGING
if (archetype->usecount < 0)