mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
linux: avoid overhead of P_CONTROLT checks if possible
Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
1fccb43c39
commit
4de1818baf
1 changed files with 2 additions and 0 deletions
|
|
@ -137,6 +137,8 @@ linux_common_open(struct thread *td, int dirfd, char *path, int l_flags, int mod
|
|||
error = ELOOP;
|
||||
goto done;
|
||||
}
|
||||
if (p->p_flag & P_CONTROLT)
|
||||
goto done;
|
||||
if (bsd_flags & O_NOCTTY)
|
||||
goto done;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue