Project

General

Profile

Bug #5618 ยป drbserver.rb

DRb Server - larsch (Lars Christensen), 11/11/2011 10:49 PM

 
1
require 'drb'
2
class Fail < Exception
3
end
4
class Server
5
  def go
6
    raise Fail
7
  end
8
end
9
DRb.start_service 'druby://:9991', Server.new
10
trap("INT") { DRb.stop_service }
11
DRb.thread.join