refine libexec

This commit is contained in:
Max Lv
2012-12-19 15:32:31 +08:00
parent 5bb9ccd848
commit 89da9abda3
9 changed files with 103 additions and 110 deletions
+7 -5
View File
@@ -43,16 +43,18 @@ public class Exec {
* Callers are responsible for calling Exec.close() on the returned file
* descriptor.
*
* @param cmd The command to execute
* @param args An array of arguments to the command
* @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
* environment of the process
* environment of the process.
* @param scripts The scripts to execute.
* @param processId A one-element array to which the process ID of the started
* process will be written.
* @return the file descriptor of the started process.
* @return File descriptor
*/
public static native FileDescriptor createSubprocess(String cmd,
String[] args, String[] envVars, int[] processId);
String[] args, String[] envVars,
String scripts, int[] processId);
/**
* Send SIGHUP to a process group.