Page MenuHomeFreeBSD

D61054.1793467890.diff
No OneTemporary

Authored By
Unknown
Size
717 B
Referenced Files
None
Subscribers
None

D61054.1793467890.diff

diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -2644,13 +2644,16 @@
if ((ops->fo_flags & DFLAG_FORK) != 0 &&
(ofde->fde_flags & UF_FOCLOSE) == 0) {
if (ops->fo_fork(newfdp, ofde->fde_file, &fp, p1,
- curthread) != 0)
+ curthread) != 0) {
+ if (newfdp->fd_freefile > i)
+ newfdp->fd_freefile = i;
continue;
+ }
fork_pass = true;
} else if ((ops->fo_flags & DFLAG_PASSABLE) == 0 ||
(ofde->fde_flags & UF_FOCLOSE) != 0 ||
!fhold(ofde->fde_file)) {
- if (newfdp->fd_freefile == fdp->fd_freefile)
+ if (newfdp->fd_freefile > i)
newfdp->fd_freefile = i;
continue;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Oct 31, 5:31 PM (10 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41267329
Default Alt Text
D61054.1793467890.diff (717 B)

Event Timeline