* fhandler_tty.cc (fhandler_tty_slave::open): Reset the current windows station
whenever ctty == -1 regardles of whetehr there's a windows station already assigned. Close the old windows station in this situation. * pinfo.cc (_pinfo::set_ctty): Reinstate incrementing of console count when recording ctty so that the current tty is always around.
This commit is contained in:
@@ -365,6 +365,8 @@ _pinfo::set_ctty (tty_min *tc, int flags, fhandler_tty_slave *arch)
|
||||
if (arch)
|
||||
{
|
||||
arch->usecount++;
|
||||
/* guard ctty arch */
|
||||
cygheap->manage_console_count ("_pinfo::set_ctty", 1);
|
||||
report_tty_counts (cygheap->ctty, "ctty", "");
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user