mirror of
https://github.com/PhotonVision/photonvision
synced 2026-06-21 01:01:41 +00:00
Stop unknown coprocessor stats / no output from shell commands. (#1786)
Join the threads and wait for them to finish reading the input/error streams before returning.
This commit is contained in:
@@ -145,8 +145,9 @@ public class ShellExec {
|
||||
exitCode = 0;
|
||||
if (wait) {
|
||||
try {
|
||||
process.waitFor();
|
||||
exitCode = process.exitValue();
|
||||
exitCode = process.waitFor();
|
||||
errorGobbler.join();
|
||||
outputGobbler.join();
|
||||
} catch (InterruptedException ignored) {
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user