BSim: Enable stderr display on console in runCommand()

This commit is contained in:
Andras Gemes 2024-10-24 11:47:54 +02:00
parent 64b70d8ef7
commit d74764ebf5
No known key found for this signature in database
GPG Key ID: F1EF1E4F007ECBAB

View File

@ -691,8 +691,9 @@ public class BSimControlLaunchable implements GhidraLaunchable {
Process process = processBuilder.start();
new IOThread(process.getInputStream(), true).start();
IOThread errThread = new IOThread(process.getErrorStream(), true);
IOThread errThread = new IOThread(process.getErrorStream(), false);
errThread.start();
errThread.join(); // Ensure all stderr output is processed to avoid mixed-up console output
int retval = process.waitFor();
return retval;