mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 14:16:47 +00:00
fix: 修复do_wait函数在wait所有子进程时,忘了释放锁就sleep的bug (#1089)
Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
parent
7ae6621cfa
commit
01dcb5d7a8
@ -175,6 +175,7 @@ fn do_wait(kwo: &mut KernelWaitOption) -> Result<usize, SystemError> {
|
||||
break 'outer;
|
||||
}
|
||||
}
|
||||
drop(rd_childen);
|
||||
nanosleep(Duration::from_millis(100).into())?;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user