svn commit: r268337 - stable/10/sys/kern

Mateusz Guzik mjg at FreeBSD.org
Sun Jul 6 22:51:54 UTC 2014


Author: mjg
Date: Sun Jul  6 22:51:53 2014
New Revision: 268337
URL: http://svnweb.freebsd.org/changeset/base/268337

Log:
  MFC r267708:
  
  do_dup: plug redundant adjustment of fd_lastfile
  
  By that time it was already set by fdalloc, or was there in the first place
  if fd is replaced.

Modified:
  stable/10/sys/kern/kern_descrip.c

Modified: stable/10/sys/kern/kern_descrip.c
==============================================================================
--- stable/10/sys/kern/kern_descrip.c	Sun Jul  6 22:49:07 2014	(r268336)
+++ stable/10/sys/kern/kern_descrip.c	Sun Jul  6 22:51:53 2014	(r268337)
@@ -886,8 +886,6 @@ do_dup(struct thread *td, int flags, int
 		newfde->fde_flags = oldfde->fde_flags | UF_EXCLOSE;
 	else
 		newfde->fde_flags = oldfde->fde_flags & ~UF_EXCLOSE;
-	if (new > fdp->fd_lastfile)
-		fdp->fd_lastfile = new;
 	*retval = new;
 
 	if (delfp != NULL) {


More information about the svn-src-all mailing list