From: Eric Hodel Date: 2005-07-18T06:03:02+09:00 Subject: Re: stopping a drb server On 17 Jul 2005, at 13:52, Mark Volkmann wrote: > Should I be able to stop a drb server that ends with > > DRb.thread.join > > by hitting Ctrl-C? > > http://segment7.net/projects/ruby/drb/introduction.html says that > should work. > It's not working for me. > > Maybe there's additional code I need to add to enable that. Shouldn't be... What platform? Is you DNS working? DRb performs a DNS lookup to discover your local hostname. $ cat simple_server.rb #!/usr/bin/env ruby -w # simple_service.rb # A simple DRb service # load DRb require 'drb' # start up the DRb service DRb.start_service nil, [] # We need the uri of the service to connect a client puts DRb.uri # wait for the DRb service to finish before exiting DRb.thread.join $ ruby -v simple_server.rb ruby 1.8.3 (2005-06-17) [powerpc-darwin8.1.0] druby://kaa.local:58927 ^Csimple_server.rb:15:in `join': Interrupt from simple_server.rb:15 $ -- Eric Hodel - drbrain@segment7.net - http://segment7.net FEC2 57F1 D465 EB15 5D6E 7C11 332A 551C 796C 9F04