public final class Processes extends Object
|Modifier and Type||Method and Description|
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 kill
environment- 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