diff -r 612f2e5647fc extexecution/src/org/netbeans/api/extexecution/ExternalProcessSupport.java --- a/extexecution/src/org/netbeans/api/extexecution/ExternalProcessSupport.java Wed Jul 08 09:24:30 2009 +0200 +++ b/extexecution/src/org/netbeans/api/extexecution/ExternalProcessSupport.java Thu Jul 09 11:12:28 2009 +0200 @@ -62,11 +62,15 @@ /** * Destroys the process passed as parameter and attempts to terminate all child * processes created during the process' execution. + *
+ * 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 terminated.
*
* @param process process to kill
- * @param env Map containing environment variable names and values.
- * Any process running with such envvar's value will be
- * terminated. Improves localization of child processes.
+ * @param env map containing the variables and their values which the
+ * process must have to be considered being part of
+ * the tree to kill
*/
public static void destroy(@NonNull Process process, @NonNull Map