* pinfo.cc (_pinfo::set_ctty): *Always* call close on opened ctty since it
counts as an opened handle.
This commit is contained in:
@ -286,8 +286,7 @@ _pinfo::set_ctty (tty_min *tc, int flags, fhandler_tty_slave *arch)
|
||||
{
|
||||
syscall_printf ("ctty %p, usecount %d", cygheap->ctty,
|
||||
cygheap->ctty->usecount);
|
||||
if (!--cygheap->ctty->usecount)
|
||||
cygheap->ctty->close ();
|
||||
cygheap->ctty->close ();
|
||||
}
|
||||
cygheap->ctty = arch;
|
||||
if (arch)
|
||||
|
Reference in New Issue
Block a user