• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

identifying and killing child processes??

 
Diego Bowen
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Computer folks, I have a process "P1" that is ran using Runtime.getRuntime().exec() command. P1 spawns numerous child process "p's".
When I kill P1 it disappears from the active process list using the "ps" command however its children are alive and well. How can I first identify the children spawned by "P1" and then proceed to kill them when the parent is killed??? Thank you, Diego
 
Diego Bowen
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just to clarify the above...I use P1.destroy() to kill the process...thank you..
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic