Files
Sebastien Tardif 8a28cefd08 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>
2026-05-29 12:20:51 +02:00
..