mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Drop files at the correct time
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
7e1abc1fbb
commit
8600278a5f
@ -17,7 +17,7 @@ pub fn sys_read(
|
||||
fd, user_buf_addr, buf_len
|
||||
);
|
||||
|
||||
let mut file_table = ctx.thread_local.file_table().borrow_mut();
|
||||
let mut file_table = ctx.thread_local.borrow_file_table_mut();
|
||||
let file = get_file_fast!(&mut file_table, fd);
|
||||
|
||||
// According to <https://man7.org/linux/man-pages/man2/read.2.html>, if
|
||||
|
Reference in New Issue
Block a user