Browse Source

Fix double close

Accidentally made file references not count as references and therefore also close the fd. My bad.
jD91mZM2 6 năm trước cách đây
mục cha
commit
028378b8bf
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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
         }
     }
 }