mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 20:03:22 +00:00
Refactor process table
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
91171c38ec
commit
6ece48c095
@ -130,7 +130,7 @@ impl DirOps for RootDirOps {
|
||||
cached_children
|
||||
.put_entry_if_not_found("meminfo", || MemInfoFileOps::new_inode(this_ptr.clone()));
|
||||
|
||||
for process in process_table::process_table().iter() {
|
||||
for process in process_table::process_table_mut().iter() {
|
||||
let pid = process.pid().to_string();
|
||||
cached_children.put_entry_if_not_found(&pid, || {
|
||||
PidDirOps::new_inode(process.clone(), this_ptr.clone())
|
||||
|
Reference in New Issue
Block a user