mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-06 03:31: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;
|
exitCode = 0;
|
||||||
if (wait) {
|
if (wait) {
|
||||||
try {
|
try {
|
||||||
process.waitFor();
|
exitCode = process.waitFor();
|
||||||
exitCode = process.exitValue();
|
errorGobbler.join();
|
||||||
|
outputGobbler.join();
|
||||||
} catch (InterruptedException ignored) {
|
} catch (InterruptedException ignored) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user