in addition to what #kill process does , also tries tokill all the daemon processes launched . kills the given process like process #destroy but also attempts to kill descendant processes created from the given process . in addition , optionally perform `` search and destroy '' based on environment variables . in this method , the method is given a `` model environment variables '' , which is a list of environment variables and their values that are characteristic to the launched process . the implementation is expected to find processes in the system that inherit these environment variables , and kill them all . this is suitable for locating daemon processes that can not be tracked by the regular ancestor/descendant relationship . the implementation is obviously os-dependent . concode_field_sep PlaceHolder placeHolder concode_field_sep EnvVars createCookie concode_elem_sep ProcessTreeKiller get
void function ( Process arg0 , Map < String , String > arg1 ) { ProcessTree loc0 = ProcessTree . get ( ) ; if ( arg0 != null ) loc0 . get ( arg0 ) . killRecursively ( ) ; if ( arg1 != null ) loc0 . killAll ( arg1 ) ; }