Skip to content

Commit

Permalink
修复合并错误
Browse files Browse the repository at this point in the history
  • Loading branch information
MemoryShore committed Aug 28, 2024
1 parent d6a5341 commit d8cde6e
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 d8cde6e

Please sign in to comment.