Remove some warnings.

This commit is contained in:
Yifan Wu 2020-12-20 23:49:35 +08:00
parent b121689d08
commit 08bc677d3b
4 changed files with 6 additions and 3 deletions

View file

@ -11,7 +11,6 @@ use crate::mm::{
translated_refmut,
};
use crate::fs::{
OSInode,
open_file,
OpenFlags,
};
@ -87,7 +86,7 @@ pub fn sys_waitpid(pid: isize, exit_code_ptr: *mut i32) -> isize {
});
if let Some((idx, _)) = pair {
let child = inner.children.remove(idx);
// confirm that child will be deallocated after removing from children list
// confirm that child will be deallocated after being removed from children list
assert_eq!(Arc::strong_count(&child), 1);
let found_pid = child.getpid();
// ++++ temporarily hold child lock