Skip to content

Commit

Permalink
Merge branch 'patch-add-file-mapping' into feat-dynamic-link
Browse files Browse the repository at this point in the history
  • Loading branch information
MemoryShore committed Aug 28, 2024
2 parents baae979 + d8cde6e commit 10d64ec
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/src/filesystem/vfs/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -745,9 +745,7 @@ impl FileDescriptorVec {

// 把文件描述符数组对应位置设置为空
let file = self.fds[fd as usize].take().unwrap();
self.fds[fd as usize].take().unwrap();

assert!(Arc::strong_count(&file) == 1);
return Ok(file);
}

Expand Down

0 comments on commit 10d64ec

Please sign in to comment.