소스 검색

Fix double close

Accidentally made file references not count as references and therefore also close the fd. My bad.
jD91mZM2 6 년 전
부모
커밋
028378b8bf
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/fs.rs

+ 1 - 1
src/fs.rs

@@ -68,7 +68,7 @@ impl File {
     pub unsafe fn get_ref(&self) -> Self {
         Self {
             fd: self.fd,
-            reference: false
+            reference: true
         }
     }
 }