I should probably clarify:


On Wed, Jul 24, 2002 at 10:14:13PM +0900, Jim Freeze wrote:
> 
>  def launch
>    job.pid = Process.fork { redirect(job) }
>    @job_table[pid] = job
>  ensure
>    wait
>  end
> 
>  def redirect(job)
>    .. setup stuff
>    job.result = system(job.cmd)   #=> job.result has a value here
>  end
> 
>  def wait
>   loop {
>     begin
>       pid, rtn_status = Process.wait2
>       job = @job_table[pid]
        ## We get here after system and redirect return
>       job.result                      #=> job.result is empty. Why?
>     rescue StandardError => err
>       break
>     end
>   }
>  end
>  


-- 
Jim Freeze
If only I had something clever to say for my comment...
~