This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Threads and Synchronization and the fly likes identifying and killing child processes?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Threads and Synchronization
Bookmark "identifying and killing child processes??" Watch "identifying and killing child processes??" New topic
Author

identifying and killing child processes??

Diego Bowen
Ranch Hand

Joined: Aug 19, 2003
Posts: 50
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

Joined: Aug 19, 2003
Posts: 50
Just to clarify the above...I use P1.destroy() to kill the process...thank you..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: identifying and killing child processes??
 
Similar Threads
How to kill a child thread from its parent?
kill -9 -1
How to assign name to a child process which was invoked by parent process?
aboue Runtime.getRuntime().exec() create process
about Runtime.getRuntime().exec(shellCmd) create process