mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use ctty instead of just returning. ctty just has a simple open that
returns ENXIO. Submitted by: jhb
This commit is contained in:
parent
cd6dedfc61
commit
1bf5e4b866
1 changed files with 1 additions and 1 deletions
|
|
@ -67,7 +67,7 @@ ctty_clone(void *arg, struct ucred *cred, char *name, int namelen,
|
|||
else if (curthread->td_proc->p_session->s_ttyvp->v_type == VBAD ||
|
||||
curthread->td_proc->p_session->s_ttyvp->v_rdev == NULL) {
|
||||
/* e.g. s_ttyvp was revoked */
|
||||
return;
|
||||
*dev = ctty;
|
||||
} else
|
||||
*dev = curthread->td_proc->p_session->s_ttyvp->v_rdev;
|
||||
dev_ref(*dev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue