svn commit: r354891 - head/sys/compat/linux

Mateusz Guzik mjg at FreeBSD.org
Wed Nov 20 12:06:30 UTC 2019


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;
 


More information about the svn-src-head mailing list