On 12 Apr 2009, at 05:26, Carlos Santana wrote:
>
>
> - The problem is when I click/call on this method for the first time
> then it does not work saying missing file. The zip file is not ready  
> at
> that point.
> - If I go back and click again then it works fine and instantaneously
> delivers the zip file.
> -  Is there anyway I can fix this? I tried putting sleep method,
> however its not working either. And what is causing this problem? I
> thought above method wouldn't return until background jobs are  
> complete.
>
If you want to wait for a process to complete you should be using  
Process.wait. Though if you're blocking on it like that what's the  
point of using fork ?

Fred
> Any clues?
>
> -
> Thanks,
> CS.
> -- 
> Posted via http://www.ruby-forum.com/.
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to