Ver código fonte

Merge branch 'patch-add-file-mapping' into feat-dynamic-link

MemoryShore 8 meses atrás
pai
commit
10d64ec601
1 arquivos alterados com 0 adições e 2 exclusões
  1. 0 2
      kernel/src/filesystem/vfs/file.rs

+ 0 - 2
kernel/src/filesystem/vfs/file.rs

@@ -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);
     }