mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04: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
2 changed files with 4 additions and 2 deletions
|
|
@ -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 a new issue