fix a bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user