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;
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"