From 38cd838637eab022e13231e78d0727fb8ac4da12 Mon Sep 17 00:00:00 2001 From: mjg Date: Sun, 22 Jun 2014 00:53:33 +0000 Subject: [PATCH] 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. MFC after: 1 week --- sys/kern/kern_descrip.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 88b26af30cc5..9c0d7c0e61a9 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -885,8 +885,6 @@ do_dup(struct thread *td, int flags, int old, int new, 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) {