Selaa lähdekoodia

Fix double close

Accidentally made file references not count as references and therefore also close the fd. My bad.
jD91mZM2 6 vuotta sitten
vanhempi
commit
028378b8bf
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/fs.rs

+ 1 - 1
src/fs.rs

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