Don't remove the controlling tty from the session if the vnode is being

cleaned. This should help for PR kern/3581.
This commit is contained in:
tegge 1997-05-29 13:29:13 +00:00
parent 587ca3db0a
commit ddd2ab1026
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)spec_vnops.c 8.14 (Berkeley) 5/21/95
* $Id: spec_vnops.c,v 1.38 1997/03/24 11:24:44 bde Exp $
* $Id: spec_vnops.c,v 1.39 1997/05/01 19:12:22 sos Exp $
*/
#include <sys/param.h>
@ -595,6 +595,7 @@ spec_close(ap)
* plus the session), release the reference from the session.
*/
if (vcount(vp) == 2 && ap->a_p &&
(vp->v_flag & VXLOCK) == 0 &&
vp == ap->a_p->p_session->s_ttyvp) {
vrele(vp);
ap->a_p->p_session->s_ttyvp = NULL;

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)spec_vnops.c 8.14 (Berkeley) 5/21/95
* $Id: spec_vnops.c,v 1.38 1997/03/24 11:24:44 bde Exp $
* $Id: spec_vnops.c,v 1.39 1997/05/01 19:12:22 sos Exp $
*/
#include <sys/param.h>
@ -595,6 +595,7 @@ spec_close(ap)
* plus the session), release the reference from the session.
*/
if (vcount(vp) == 2 && ap->a_p &&
(vp->v_flag & VXLOCK) == 0 &&
vp == ap->a_p->p_session->s_ttyvp) {
vrele(vp);
ap->a_p->p_session->s_ttyvp = NULL;