On Sun, 22 May 2005, Xevious wrote:
>
> The latest version of dispatch.fcgi in the trunk has
> the following code snippet:
>
> trap("USR1") do
> # Go to exit as soon as possible.
> end
>
> One of the issues I encountered while debugging
> fcgi under windows is that SIGUSR1 is not supported
> in the native Windows version of Ruby (though it is
> in cygwin).
>
> Currently, I have it commented out to allow dispatch.fcgi
> to run without blowing up.
>
> I could issue a patch to circumvent it if Windows
> is detected, but that hardly seems like Doing The
> Right Thing.
>
> Thoughts? Advice? Dumb looks?
>
> xev
assuming there is no equivalent signal in windows something like
harp:~ > irb
irb(main):001:0> trap(''NOSUCH''){ p 42 }
ArgumentError: unsupported signal SIGNOSUCH
from (irb):1:in `trap''
from (irb):1
irb(main):002:0> begin; trap(''NOSUCH''){ p 42 }; rescue
ArgumentError; nil; end
=> nil
ought to do. if there is an equivalent you could
sigs = %w( A-UNIX-Y-SIG A-WINDOW-Y-SIG A-MAC-Y-SIG )
sigs.each do |sig|
begin
trap(sig){ exit }
break
rescue ArgumentError
next
end
end
or something close...
-a
--
==============================================================================|
email :: ara [dot] t [dot] howard [at] noaa [dot] gov
| phone :: 303.497.6469
| My religion is very simple. My religion is kindness.
| --Tenzin Gyatso
===============================================================================