A
Alex Young
Hi all,
I'm knocking up a few test scripts using WEBrick (on Ubuntu), and I'm
constantly annoyed by the fact that hitting Ctrl-C doesn't kill it, but
makes it print the following to the console:
[2006-10-05 09:43:48] ERROR Interrupt:
/usr/lib/ruby/1.8/webrick/server.rb:91:in `select'
I have to go to another console (or suspend it) and kill -9 the process.
How can I stop this from happening? The code is very, very simple:
require 'xmlrpc/server'
class Server < XMLRPC::Server
def initialize
super(8080, '0.0.0.0', 1)
self.add_handler('test.unit'){ 1 }
self.serve
end
end
Server.new
I'm sure there's a simple answer, but it eludes me...
I'm knocking up a few test scripts using WEBrick (on Ubuntu), and I'm
constantly annoyed by the fact that hitting Ctrl-C doesn't kill it, but
makes it print the following to the console:
[2006-10-05 09:43:48] ERROR Interrupt:
/usr/lib/ruby/1.8/webrick/server.rb:91:in `select'
I have to go to another console (or suspend it) and kill -9 the process.
How can I stop this from happening? The code is very, very simple:
require 'xmlrpc/server'
class Server < XMLRPC::Server
def initialize
super(8080, '0.0.0.0', 1)
self.add_handler('test.unit'){ 1 }
self.serve
end
end
Server.new
I'm sure there's a simple answer, but it eludes me...