From: Michael Satterwhite Date: 2009-02-17T03:45:10+09:00 Subject: Re: Controlling a forked process David Masover wrote: > Yes. The parent process should have the process ID of the child. With > that you can do things like: > > if (pid = fork) > sleep 1 > Process.kill('TERM', pid) > else > loop do > puts 'KILL ME' > end > end on the line if (pid = fork) Is fork returning the pid of the spawned process or of the current (e.g. parent) process? More to the point, assume that I spawn multiple processes. How can I address each of them? Thanks ---Michael -- Posted via http://www.ruby-forum.com/.