Package hudson.util
Class ProcessTree.UnixProcess
java.lang.Object
hudson.util.ProcessTree.OSProcess
hudson.util.ProcessTree.UnixProcess
- All Implemented Interfaces:
ProcessTreeRemoting.IOSProcess
,Serializable
- Enclosing class:
- ProcessTree
A process.
- See Also:
-
Constructor Summary
-
Method Summary
Methods inherited from class hudson.util.ProcessTree.OSProcess
act, getChildren, getEnvironmentVariables, getParent, getPid, getVeto, hasMatchingEnvVars
-
Constructor Details
-
UnixProcess
protected UnixProcess(int pid)
-
-
Method Details
-
getFile
-
kill
Tries to kill this process.- Specified by:
kill
in interfaceProcessTreeRemoting.IOSProcess
- Specified by:
kill
in classProcessTree.OSProcess
- Throws:
InterruptedException
-
killRecursively
Description copied from class:ProcessTree.OSProcess
Kills this process and all the descendants.Note that the notion of "descendants" is somewhat vague, in the presence of such things like daemons. On platforms where the recursive operation is not supported, this just kills the current process.
- Specified by:
killRecursively
in interfaceProcessTreeRemoting.IOSProcess
- Specified by:
killRecursively
in classProcessTree.OSProcess
- Throws:
InterruptedException
-
getArguments
Obtains the argument list of this process.- Specified by:
getArguments
in interfaceProcessTreeRemoting.IOSProcess
- Specified by:
getArguments
in classProcessTree.OSProcess
- Returns:
- empty list if failed (for example because the process is already dead, or the permission was denied.)
-