Is it possible to destroy process tree in Java?
843810Oct 28 2004 — edited Oct 28 2004I am creating a process using Runtime.exec(). Newly created process spawns another process and that may spawn other processes. I want to kill all these child processes when my application exits.
Process.destroy() only kills the immediate child.
Is it possible in Java to kill process tree? or is there any other way of achieving it?
Thanks
Sudhan.