Commit cb5266f9 authored by Max Lv's avatar Max Lv

fix a bug

parent 7a52f700
......@@ -112,12 +112,12 @@ public class Utils {
pipe = createSubprocess(pid, getShell());
}
if (result == null || pipe == null) return;
if (pid[0] != -1) {
exitcode = Exec.waitFor(pid[0]);
}
if (result == null || pipe == null) return;
final InputStream stdout = new FileInputStream(pipe);
final byte buf[] = new byte[8192];
int read = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment