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
This commit is contained in:
parent
8563583ef9
commit
38cd838637
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user