mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-08 10:15:03 +00:00
fix: 修复do_wait函数在wait所有子进程时,忘了释放锁就sleep的bug (#1089)
Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
parent
5b4d581e92
commit
152dbf125a
@ -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