From 028378b8bf9a7705082ee0309523bbb5dfd35470 Mon Sep 17 00:00:00 2001 From: jD91mZM2 Date: Sun, 7 Oct 2018 10:54:37 +0200 Subject: [PATCH] Fix double close Accidentally made file references not count as references and therefore also close the fd. My bad. --- src/fs.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fs.rs b/src/fs.rs index 672081a4ef..2fc14afc52 100644 --- a/src/fs.rs +++ b/src/fs.rs @@ -68,7 +68,7 @@ impl File { pub unsafe fn get_ref(&self) -> Self { Self { fd: self.fd, - reference: false + reference: true } } }