Spring Boot helps you to create Spring-powered, production-grade applications and services with absolute minimum fuss.
Restore interrupt flag in ProcessRunner on InterruptedException
ProcessRunner.waitForProcess and ReaderThread.toString catch InterruptedException without restoring the thread interrupt flag. This prevents callers higher up the stack from detecting the interruption. Every other InterruptedException handler in the codebase restores the flag; these two were the only omissions. Add Thread.currentThread().interrupt() before re-throwing or returning in both catch blocks. Also chain the original exception as the cause in waitForProcess for debuggability. See gh-50451 Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
S
Sebastien Tardif committed
8a28cefd08d6e09f0d2075290ecace154a04ed0a
Parent: 3e5ad73
Committed by Stéphane Nicoll <stephane.nicoll@broadcom.com>
on 5/29/2026, 10:20:51 AM