Permalink
Browse files

Get most features passing again

  • Loading branch information...
1 parent 32676c2 commit 8eb5f94f7f1057ad4c5e5baa70c8862189ed8310 @lukeredpath committed Jul 11, 2012
Showing with 1 addition and 15 deletions.
  1. +1 −15 lib/mimic.rb
View
@@ -63,25 +63,11 @@ def start_service(app, options)
:Port => options[:port],
:Logger => logger,
:AccessLog => logger,
-
- }) do |server|
- @server = server
-
- @previous_int_handler = trap('INT') do
- begin
- # support case of default command String names
- @previous_int_handler.call if @previous_int_handler and @previous_int_handler.respond_to?("call")
- rescue StandardError => e
- puts "Error occurred invoking previous interrupt handler: #{e.class} #{e.to_s}"
- end
- @server.shutdown
- end
- end
+ })
end
def shutdown
Thread.kill(@thread) if @thread
- @server.shutdown if @server
end
# courtesy of http://is.gd/eoYho

0 comments on commit 8eb5f94

Please sign in to comment.