fix: 修复do_wait函数在wait所有子进程时,忘了释放锁就sleep的bug (#1089)

Signed-off-by: longjin <longjin@DragonOS.org>
This commit is contained in:
LoGin 2025-02-08 23:35:09 +08:00 committed by GitHub
parent 7ae6621cfa
commit 01dcb5d7a8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -175,6 +175,7 @@ fn do_wait(kwo: &mut KernelWaitOption) -> Result<usize, SystemError> {
break 'outer; break 'outer;
} }
} }
drop(rd_childen);
nanosleep(Duration::from_millis(100).into())?; nanosleep(Duration::from_millis(100).into())?;
} }
} else { } else {