From: Patrick May Date: 2004-09-10T08:55:55+09:00 Subject: Re: fastcgi & continuations (Re: Idea: Webshare) On Thursday, September 9, 2004, at 03:54 AM, Eric Hodel wrote: > A Ruby19 works: > > $ ruby19 -v x.rb > ruby 1.9.0 (2004-07-29) [i386-freebsd5.2] > running > at_exit > running > $ > > On FreeBSD 4.9-STABLE it works: > > $ ruby -v x.rb > ruby 1.8.1 (2003-12-25) [i386-freebsd4] > running > at_exit > running > $ > > (Same for a 2004-07-29 build) > > (at_exit only fires once for both of these) From what I know of ruby, I think at_exit firing once is a 'bug', even if it doesn't core dump. I hit this bug while trying matz's fastcgi trick [ruby-talk:13428]. In that example, continuations are used to invisibly create a loop in plain cgi script. This allows the script to become a persistent fastcgi process. I am not a c programmer, so I can't help. Thank you for taking the time to look at this bug. I appreciate your help. Cheers, Patrick