* fhandler_tty.cc (fhandler_tty::close): Remove problematic hExeced guard.
This commit is contained in:
parent
3b26b6a205
commit
6118c524b0
@ -1,3 +1,7 @@
|
|||||||
|
2006-05-20 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
|
* fhandler_tty.cc (fhandler_tty::close): Remove problematic hExeced guard.
|
||||||
|
|
||||||
2006-05-20 Christopher Faylor <cgf@timesys.com>
|
2006-05-20 Christopher Faylor <cgf@timesys.com>
|
||||||
|
|
||||||
* fhandler_tty.cc (fhandler_tty_slave::open): Reinstate call to
|
* fhandler_tty.cc (fhandler_tty_slave::open): Reinstate call to
|
||||||
|
@ -598,8 +598,11 @@ out:
|
|||||||
int
|
int
|
||||||
fhandler_tty_slave::close ()
|
fhandler_tty_slave::close ()
|
||||||
{
|
{
|
||||||
if (!hExeced)
|
/* This used to always call fhandler_tty_common::close when hExeced but that
|
||||||
{
|
caused multiple closes of the handles associated with this tty. Since
|
||||||
|
close_all_files is not called until after the cygwin process has synced
|
||||||
|
or before a non-cygwin process has exited, it should be safe to just
|
||||||
|
close this normally. cgf 2006-05-20 */
|
||||||
cygheap->manage_console_count ("fhandler_tty_slave::close", -1);
|
cygheap->manage_console_count ("fhandler_tty_slave::close", -1);
|
||||||
|
|
||||||
archetype->usecount--;
|
archetype->usecount--;
|
||||||
@ -614,7 +617,6 @@ fhandler_tty_slave::close ()
|
|||||||
termios_printf ("just returning because archetype usecount is != 0");
|
termios_printf ("just returning because archetype usecount is != 0");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
termios_printf ("closing last open %s handle", ttyname ());
|
termios_printf ("closing last open %s handle", ttyname ());
|
||||||
return fhandler_tty_common::close ();
|
return fhandler_tty_common::close ();
|
||||||
|
Loading…
Reference in New Issue
Block a user