From: ts Date: 2002-07-24T22:59:15+09:00 Subject: Re: Can I get data back from a fork? >>>>> "J" == Jim Freeze writes: >> job.pid = Process.fork { redirect(job) } job is created in a process >> def redirect(job) >> job.result = system(job.cmd) #=> job.result has a value here you modify `job' in *another* process >> job.result #=> job.result is empty. Why? you retrieve the value that was assigned in the initial process `job' is not a shared variable Guy Decoux