MonkeeSage wrote: > Alex Young wrote: >> 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 > > Signal.trap(2) { > "Server killed (sigint)" > exit(1) > } > That gives me: [2006-10-05 12:33:30] ERROR SystemExit: exit test_server.rb:5:in `exit' and a still-running process. -- Alex