thumbnail preview fixes windows (#6074)

This commit is contained in:
Anthony Stirling
2026-04-15 23:25:38 +01:00
committed by GitHub
parent cc5a0b8def
commit 60c036e980
9 changed files with 684 additions and 6 deletions
@@ -282,8 +282,9 @@ public class ProcessExecutor {
boolean finished = process.waitFor(timeoutDuration, TimeUnit.MINUTES);
if (!finished) {
// Terminate the process
process.destroy();
// Kill the entire process tree (descendants first, then the process itself)
process.descendants().forEach(ProcessHandle::destroyForcibly);
process.destroyForcibly();
// Interrupt the reader threads
errorReaderThread.interrupt();
outputReaderThread.interrupt();