disable redirect for commands

This commit is contained in:
Max Lv
2012-12-19 19:40:34 +08:00
parent 634e077b1a
commit 7a52f700e7
4 changed files with 26 additions and 16 deletions
+2 -1
View File
@@ -43,6 +43,7 @@ public class Exec {
* Callers are responsible for calling Exec.close() on the returned file
* descriptor.
*
* @param rdt Whether redirect stdout and stderr
* @param cmd The command to execute.
* @param args An array of arguments to the command.
* @param envVars An array of strings of the form "VAR=value" to be added to the
@@ -52,7 +53,7 @@ public class Exec {
* process will be written.
* @return File descriptor
*/
public static native FileDescriptor createSubprocess(String cmd,
public static native FileDescriptor createSubprocess(int rdt, String cmd,
String[] args, String[] envVars,
String scripts, int[] processId);