Drop files at the correct time

This commit is contained in:
Ruihan Li
2025-04-05 14:28:15 +08:00
committed by Tate, Hongliang Tian
parent 7e1abc1fbb
commit 8600278a5f
62 changed files with 223 additions and 141 deletions

View File

@ -239,7 +239,7 @@ fn clone_child_task(
clone_sysvsem(clone_flags)?;
// clone file table
let child_file_table = clone_files(&thread_local.file_table().borrow(), clone_flags);
let child_file_table = clone_files(thread_local.borrow_file_table().unwrap(), clone_flags);
// clone fs
let child_fs = clone_fs(posix_thread.fs(), clone_flags);
@ -315,7 +315,7 @@ fn clone_child_process(
));
// clone file table
let child_file_table = clone_files(&thread_local.file_table().borrow(), clone_flags);
let child_file_table = clone_files(thread_local.borrow_file_table().unwrap(), clone_flags);
// clone fs
let child_fs = clone_fs(posix_thread.fs(), clone_flags);