java Process stop entire process tree
Posted
by ages04
on Stack Overflow
See other posts from Stack Overflow
or by ages04
Published on 2010-03-18T16:38:12Z
Indexed on
2010/03/18
16:41 UTC
Read the original article
Hit count: 465
I am using Java Runtime to run commands, including certain CVS commands.
I use:
process = runtime.exec ("cmd /C cvs...");
format for running the Process in Java
I need to have the option of stopping it. For this I use the Java Process destroy method
process.destroy();
However only the cmd is stopped not the cvs process. It continues to run as a separate process without the cmd process as the parent.
There are many references to this on the internet, but I haven't found any satisfactory solution. Thanks
© Stack Overflow or respective owner