rtomayko / shotgun

reloading rack development server / forking version of rackup
Other
864 stars 66 forks source link

unsupported signal SIGQUIT #32

Closed RyanScottLewis closed 13 years ago

RyanScottLewis commented 13 years ago
C:/Ruby192/lib/ruby/gems/1.9.1/gems/shotgun-0.9/bin/shotgun:142:in `trap': unsupported signal SIGQUIT (ArgumentError)
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/shotgun-0.9/bin/shotgun:142:in `block in <top (required)>'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/shotgun-0.9/bin/shotgun:141:in `each'
    from C:/Ruby192/lib/ruby/gems/1.9.1/gems/shotgun-0.9/bin/shotgun:141:in `<top (required)>'
    from C:/Ruby192/bin/shotgun:19:in `load'
    from C:/Ruby192/bin/shotgun:19:in `<main>'

This is what I get when running shotgun on Win 7 x64.

RyanScottLewis commented 13 years ago

Works when I remove the 'QUIT' string from line 142 in /shotgun-0.9/bin/shotgun

RyanScottLewis commented 13 years ago

Now I'm getting

!! Unexpected error while processing request: fork() function is unimplemented on this machine

Does shotgun work for Windows?

RyanScottLewis commented 13 years ago

Going to try to hack this lib in then maybe fork the shotgun if I get it working.

rtomayko commented 13 years ago

Sorry, Shotgun isn't supported on Windows. If you can come up with something, I'd love to see it.

atomi commented 12 years ago

Sorry, Shotgun isn't supported on Windows. If you can come up with something, I'd love to see it.

I'm having this issue. Since SIGQUIT is a problem in windows could this method be used in shotgun: stereobooster/guard@cbe2cb353c82ce38caf3f58185dd7fb46897f554 ?

tdbit commented 12 years ago

Might this work?

require 'rbconfig'

signals = if (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/)
    ['INT', 'TERM', 'EXIT', 'ABRT', 'KILL']
 else
    ['INT', 'TERM', 'QUIT']

signals.each do |signal|