* pinfo.cc (_pinfo::set_ctty): *Always* call close on opened ctty since it
counts as an opened handle.
This commit is contained in:
		| @@ -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,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