Merge branch '4.0.x'

Closes gh-50618
This commit is contained in:
Stéphane Nicoll
2026-05-29 12:31:05 +02:00
@@ -138,7 +138,8 @@ class ProcessRunner {
return process.waitFor();
}
catch (InterruptedException ex) {
throw new IllegalStateException("Interrupted waiting for %s".formatted(process));
Thread.currentThread().interrupt();
throw new IllegalStateException("Interrupted waiting for %s".formatted(process), ex);
}
}
@@ -190,6 +191,7 @@ class ProcessRunner {
return this.output.toString();
}
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
return "";
}
}