fix the exitcode

This commit is contained in:
Max Lv
2012-12-19 15:59:06 +08:00
parent 89da9abda3
commit 634e077b1a
+1 -1
View File
@@ -115,7 +115,7 @@ public class Utils {
if (pipe == null) return;
if (pid[0] != -1) {
Exec.waitFor(pid[0]);
exitcode = Exec.waitFor(pid[0]);
}
final InputStream stdout = new FileInputStream(pipe);