Add boards/ && cargo clippy
This commit is contained in:
parent
b96db03e48
commit
04bb890fb7
17 changed files with 73 additions and 93 deletions
|
@ -60,11 +60,10 @@ pub fn sys_waitpid(pid: isize, exit_code_ptr: *mut i32) -> isize {
|
|||
|
||||
// ---- access current PCB exclusively
|
||||
let mut inner = task.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