Add boards/ && clippy
This commit is contained in:
parent
26bc01f3bc
commit
60143939d4
20 changed files with 89 additions and 89 deletions
|
@ -74,11 +74,10 @@ pub fn sys_waitpid(pid: isize, exit_code_ptr: *mut i32) -> isize {
|
|||
// find a child process
|
||||
|
||||
let mut inner = process.inner_exclusive_access();
|
||||
if inner
|
||||
if !inner
|
||||
.children
|
||||
.iter()
|
||||
.find(|p| pid == -1 || pid as usize == p.getpid())
|
||||
.is_none()
|
||||
.any(|p| pid == -1 || pid as usize == p.getpid())
|
||||
{
|
||||
return -1;
|
||||
// ---- release current PCB
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue