akr 6a7d389ed0 * lib/drb/drb.rb: Support graceful shutdown.
(DRbTCPSocket#initialize): Create a pipe for shutdown notification.
  (DRbTCPSocket#close): Invoke close_shutdown_pipe.
  (DRbTCPSocket#close_shutdown_pipe): New private method.
  (DRbTCPSocket#accept): Use accept_or_shutdown.
  (DRbTCPSocket#accept_or_shutdown): New private method which returns
  nil on shutdown.
  (DRbServer#stop_service): Use shutdown instead of Thread#kill.
  (DRbServer#run): Break infinite loop when main_loop returns nil.
  (DRbServer#main_loop): @protocol.accept may return nil.

* lib/drb/ssl.rb: Follow above change.

* lib/drb/unix.rb: Ditto.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-09-21 17:06:05 +00:00
..
2014-09-06 09:31:52 +00:00
2014-06-14 13:52:04 +00:00
2014-07-11 08:16:05 +00:00
2014-08-09 01:36:49 +00:00
2014-08-25 04:03:33 +00:00
2014-08-26 12:07:57 +00:00
2014-07-18 10:04:15 +00:00
2014-09-09 00:27:34 +00:00
2014-05-26 03:25:38 +00:00
2014-09-21 01:40:21 +00:00
2014-09-21 01:40:21 +00:00