Ctrl+C not killing Sinatra + EM::WebSocket servers
问题 I'm building a Ruby app that runs both an EM::WebSocket server as well as a Sinatra server. Individually, I believe both of these are equipped to handle a SIGINT. However, when running both in the same app, the app continues when I press Ctrl+C. My assumption is that one of them is capturing the SIGINT, preventing the other from capturing it as well. I'm not sure how to go about fixing it, though. Here's the code in a nutshell: require 'thin' require 'sinatra/base' require 'em-websocket'