mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 10:11:09 -04:00
Call fdcloseexec right after fdunshare.
No functional changes. MFC after: 1 week
This commit is contained in:
parent
b9d32c36fa
commit
b0bc0cadbe
1 changed files with 2 additions and 2 deletions
|
|
@ -595,6 +595,8 @@ interpret:
|
|||
* be shared after an exec.
|
||||
*/
|
||||
fdunshare(td);
|
||||
/* close files on exec */
|
||||
fdcloseexec(td);
|
||||
|
||||
/*
|
||||
* Malloc things before we need locks.
|
||||
|
|
@ -608,8 +610,6 @@ interpret:
|
|||
bcopy(imgp->args->begin_argv, newargs->ar_args, i);
|
||||
}
|
||||
|
||||
/* close files on exec */
|
||||
fdcloseexec(td);
|
||||
vn_lock(imgp->vp, LK_SHARED | LK_RETRY);
|
||||
|
||||
/* Get a reference to the vnode prior to locking the proc */
|
||||
|
|
|
|||
Loading…
Reference in a new issue