mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
9338d20884
commit
0f0b852c73
1 changed files with 0 additions and 2 deletions
|
|
@ -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…
Reference in a new issue