Преглед на файлове

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
         }
     }
 }