* pinfo.cc (_pinfo::set_ctty): *Always* call close on opened ctty since it
counts as an opened handle.
This commit is contained in:
parent
1df3fbe2db
commit
e35f197f34
|
@ -1,3 +1,8 @@
|
|||
2003-12-26 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* pinfo.cc (_pinfo::set_ctty): *Always* call close on opened ctty since
|
||||
it counts as an opened handle.
|
||||
|
||||
2003-12-26 Christopher Faylor <cgf@redhat.com>
|
||||
|
||||
* fhandler.h (fhandler_tty_master::fixup_after_fork): Remove
|
||||
|
|
|
@ -286,7 +286,6 @@ _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 = arch;
|
||||
|
|
Loading…
Reference in New Issue