From db5eeb7c204931f8b2da55ca070eeadb24bfb4d8 Mon Sep 17 00:00:00 2001 From: R Aadarsh Date: Thu, 28 May 2026 14:12:53 +0530 Subject: [PATCH] Remove call to `close`, instead make the kernel remove the file --- src/platform/redox/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platform/redox/mod.rs b/src/platform/redox/mod.rs index 09b84dd611..92614ac0e7 100644 --- a/src/platform/redox/mod.rs +++ b/src/platform/redox/mod.rs @@ -1282,7 +1282,7 @@ impl Pal for Sys { 0, u64::try_from(fd).map_err(|_| Errno(EBADFD))?, )?; - Sys::close(src_fd as i32)?; + core::mem::forget(src_fd); } crate::header::spawn::Operation::Close(fd) => { new_file_table.call_wo(