mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-04 03:49:02 +00:00
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:
parent
a8baaafda0
commit
14a4b83067
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=26271
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user