This week's book giveaway is in the Beginning Java forum.
We're giving away four copies of Murach's Java Programming and have Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Java Programming this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

identifying and killing child processes??  RSS feed

 
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..
 
My, my, aren't you a big fella. Here, have a tiny ad:
Thoughts on deprecation in Java
https://coderanch.com/t/683016/java/Deprecation-Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!