From: Brian Candler Date: 2003-03-12T08:55:02+09:00 Subject: Re: DRB and threads On Tue, Mar 11, 2003 at 07:28:42PM +0900, MoonWolf wrote: > > If Moonwolf is around: how about making FCGX_IsCGI available from Ruby (and > > an equivalent function in the pure Ruby version)? Then we could do: > > ruby-fcgi-0.8.2 released > http://www.moonwolf.com/ruby/archive/ruby-fcgi-0.8.2.tar.gz > > Changes(0.8.1 -> 0.8.2) > * FCGI.is_cgi? add(C & pure Ruby) > * force 'pure Ruby version' load > FCGI_PURE_RUBY = true > require 'fcgi' Wonderful! I'll try and find time to sort out the signal handling issues (which may just mean a FreeBSD vs. rest-of-the-world issue). Once done, just need to add FCGI.each_cgi do |cgi| ... end from ahoward's code and I think we have a really nice solution. In fact, I think CGI supports mod_ruby as well, so the program should run unchanged in three environments: standard CGI, fastcgi, and mod_ruby! Cheers, Brian.