From: Colin Brumelle Date: 2009-04-09T05:35:25+09:00 Subject: Re: exec (new process or new thread?) to continue I like this pattern: def fire_and_forget(&block) pid = fork do begin yield ensure Process.exit! end end Process.detach pid end A little bit safer then just using 'fork'... Taken from a post here: http://www.caboo.se/articles/2006/10/14/premcache-caching-an d-precaching-with-memcached Justin Collins wrote: > Assuming you do not need to communicate with, wait on, or know anything > about the process you are starting, you can use fork[2] and exec this > way: > > fork { exec load_app } > > -Justin > > > [1] http://ruby-doc.org/core/classes/Kernel.html#M005979 > [2] http://ruby-doc.org/core/classes/Kernel.html#M005980 -- Posted via http://www.ruby-forum.com/.