public final class Processes extends Object
ProcessesImplementation
Modifier and Type | Method and Description |
---|---|
static void |
killTree(Process process,
Map<String,String> environment)
Kills the process passed as parameter and attempts to terminate
all child processes in process tree.
|
public static void killTree(Process process, Map<String,String> environment)
Any process running in environment containing the same variables
with the same values as those passed in env
(all of them)
is supposed to be part of the process tree and may be killed.
process
- process to killenvironment
- map containing the variables and their values which the
process should have to be considered being part of
the tree to kill; used as a hint to find subprocesses