From: Paul Brannan Date: 2002-04-13T05:39:03+09:00 Subject: Re: Process controlls On Sat, Apr 13, 2002 at 04:38:22AM +0900, JohnW wrote: > This brings me to a spin off question....is there a way to grab the > child process IDs from a process? What's happening is that the forked > ruby spawns off my app perfectly, but I suspect that the kill on the > ruby PID will only kill that process and not what's running on it (my > app). So you are saying that "foo" spawns a "ruby.exe" process, and when you kill the "foo" process, the "ruby.exe" process does not get killed? Or are you saying that exec() is spawning a new process rather than replacing the current one? Are you using Windows? In that case, I'm surprised that fork/exec actually work for you (based on some earlier threads on the subject). Paul