We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8231e85 commit 571f3edCopy full SHA for 571f3ed
src/bootstrap/src/bin/main.rs
@@ -57,7 +57,9 @@ fn main() {
57
}
58
err => {
59
drop(err);
60
- if let Ok(pid) = pid {
+ // #135972: We can reach this point when the lock has been taken,
61
+ // but the locker has not yet written its PID to the file
62
+ if let Some(pid) = pid.ok().filter(|pid| !pid.is_empty()) {
63
println!("WARNING: build directory locked by process {pid}, waiting for lock");
64
} else {
65
println!("WARNING: build directory locked, waiting for lock");
0 commit comments