consider wait() calls in nested bodies

This commit is contained in:
y21 2024-09-26 14:08:22 +02:00
parent db1bda3df1
commit f06a46ee4d
2 changed files with 14 additions and 0 deletions

View file

@ -131,6 +131,13 @@ fn main() {
}
x.wait().unwrap();
}
{
let mut x = Command::new("").spawn().unwrap();
std::thread::spawn(move || {
x.wait().unwrap();
});
}
}
fn process_child(c: Child) {