added error code
This commit is contained in:
@@ -231,7 +231,7 @@ public class main {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{*/
|
else{*/
|
||||||
path = which(input);
|
path = which(input);//"/bin/"+input;
|
||||||
//}
|
//}
|
||||||
} else {
|
} else {
|
||||||
return Integer.MIN_VALUE + 1;
|
return Integer.MIN_VALUE + 1;
|
||||||
@@ -262,7 +262,7 @@ public class main {
|
|||||||
//execute the program
|
//execute the program
|
||||||
execv(path, inputArray);
|
execv(path, inputArray);
|
||||||
printColor("execv fatal error", "red", true);
|
printColor("execv fatal error", "red", true);
|
||||||
exit(0);
|
exit(Integer.MIN_VALUE);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user