Date: Wed, 20 Nov 2019 12:06:29 +0000 (UTC) From: Mateusz Guzik <mjg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r354891 - head/sys/compat/linux Message-ID: <201911201206.xAKC6TKj021970@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mjg Date: Wed Nov 20 12:06:29 2019 New Revision: 354891 URL: https://svnweb.freebsd.org/changeset/base/354891 Log: linux: avoid overhead of P_CONTROLT checks if possible Sponsored by: The FreeBSD Foundation Modified: head/sys/compat/linux/linux_file.c Modified: head/sys/compat/linux/linux_file.c ============================================================================== --- head/sys/compat/linux/linux_file.c Wed Nov 20 12:05:59 2019 (r354890) +++ head/sys/compat/linux/linux_file.c Wed Nov 20 12:06:29 2019 (r354891) @@ -137,6 +137,8 @@ linux_common_open(struct thread *td, int dirfd, char * error = ELOOP; goto done; } + if (p->p_flag & P_CONTROLT) + goto done; if (bsd_flags & O_NOCTTY) goto done;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201911201206.xAKC6TKj021970>