|Modifier and Type||Method and Description|
Kills the process passed as parameter and attempts to terminate all child processes in process tree.
void killTree(Process process, Map<String,String> environment) throws UnsupportedOperationException
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
UnsupportedOperationException- when this implementation is not able to even attempt to kill the process and the subprocesses