Remove call to close, instead make the kernel remove the file

This commit is contained in:
R Aadarsh
2026-05-28 14:12:53 +05:30
parent a6e1b269af
commit db5eeb7c20
+1 -1
View File
@@ -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(