refine libexec
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user