From: Michael Satterwhite Date: 2009-02-17T05:29:17+09:00 Subject: Re: Controlling a forked process Louis-Philippe wrote: > fork1_pid = fork { # fork 1 body } > > fork2_pid = fork { # fork 2 body } > > Process.kill('HUP', fork1_pid) > Process.kill('HUP', fork2_pid) > > does this answer your question? Close ... and it may just be that I'm a bit dense today. What is causing the first call to fork to be tied to the first process and the second call to fork to be tied to the second process? Is it simply that it's returning the pid of the most recently spawned process? -- Posted via http://www.ruby-forum.com/.