##Forwarding signals arg passed to FnordMetric::Web Using gems 'fnordmetric-1.2.9' and 'thin-1.7.0', attempting to stop the Thin webserver using 'Ctrl-C ' after
FnordMetric::Web.new(port: 4242)
led to:
Stopping Thin ...
Thin was started inside an existing EventMachine.run block.
Call `EventMachine.stop` to stop the reactor and quit the process.
'~/.rvm/gems/ruby-2.2.2/gems/fnordmetric-1.2.9/lib/fnordmetric/web/web.rb':
class FnordMetric::Web
def initialized
...
Rack::Server.start(
:app => dispatch,
:server => server,
:Host => host,
:Port => port,
# 30/8/16 DH: Allowing Ctrl-C to work with Thin recent versions
:signals => @opts[:signals]
)
end
end
Then
FnordMetric::Web.new(port: 4242, signals: false)
allowed 'Ctrl-C ' to work.