Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176839784
D61054.1793467890.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
717 B
Referenced Files
None
Subscribers
None
D61054.1793467890.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D61054: fdcopy(): properly update fd_freefile when skipping non-copyable fd
Attached
Detach File
Event Timeline