Skip to content

Commit 3209464

Browse files
committed
Merge branch '3.5.x' into 4.0.x
Closes gh-50617
2 parents 2e825ba + bb30ecc commit 3209464

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • core/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/core

core/spring-boot-docker-compose/src/main/java/org/springframework/boot/docker/compose/core/ProcessRunner.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ private int waitForProcess(Process process) {
123123
return process.waitFor();
124124
}
125125
catch (InterruptedException ex) {
126-
throw new IllegalStateException("Interrupted waiting for %s".formatted(process));
126+
Thread.currentThread().interrupt();
127+
throw new IllegalStateException("Interrupted waiting for %s".formatted(process), ex);
127128
}
128129
}
129130

@@ -175,6 +176,7 @@ public String toString() {
175176
return this.output.toString();
176177
}
177178
catch (InterruptedException ex) {
179+
Thread.currentThread().interrupt();
178180
return "";
179181
}
180182
}

0 commit comments

Comments
 (0)