Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-4689 correct decompiler processes setup thread interrupt issue

ghidra134954d6df9f8
diff --git a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileProcess.java b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileProcess.java
index 6ff9aa2039..1cce7d7e00 100644
--- a/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileProcess.java
+++ b/Ghidra/Features/Decompiler/src/main/java/ghidra/app/decompiler/DecompileProcess.java
@@ -147,10 +147,16 @@ public class DecompileProcess {
IOException exc = null;
String err = "";
statusGood = false;
+
try {
nativeProcess = runtime.exec(exepath);
// Give process time to load and report possible error
- nativeProcess.waitFor(200, TimeUnit.MILLISECONDS);
+ try {
+ nativeProcess.waitFor(200, TimeUnit.MILLISECONDS);
+ }
+ catch (InterruptedException e) {
+ // ignore
+ }
nativeIn = nativeProcess.getInputStream();
nativeOut = nativeProcess.getOutputStream();
statusGood = nativeProcess.isAlive();
@@ -163,9 +169,6 @@ public class DecompileProcess {
catch (IOException e) {
exc = e;
}
- catch (InterruptedException e) {
- // ignore
- }
finally {
if (!statusGood) {
disposestate = DisposeState.DISPOSED_ON_STARTUP_FAILURE;