lib/slave.rb in slave-1.3.0 vs lib/slave.rb in slave-1.3.1
- old
+ new
@@ -37,12 +37,16 @@
# b) Slave.new{ Server.new "this is called only in the child" }
#
# of the two 'b' is preferred.
#
class Slave
- VERSION = '1.3.0'
+ VERSION = '1.3.1'
def self.version() VERSION end
+
+ def Slave.description
+ 'easily start a drb server in another process'
+ end
# env config
#
DEFAULT_SOCKET_CREATION_ATTEMPTS = Integer(ENV['SLAVE_SOCKET_CREATION_ATTEMPTS'] || 42)
DEFAULT_DEBUG = (ENV['SLAVE_DEBUG'] ? true : false)
@@ -155,10 +159,10 @@
#
class ThreadSafeHash < Hash
def self.new(*a, &b) ThreadSafe.new(super) end
end
- # the LifeLine class is used to communitacte between child and parent
+ # the LifeLine class is used to communicate between child and parent
# processes and to prevent child processes from ever becoming zombies or
# otherwise abandoned by their parents. the basic concept is that a socket
# pair is setup between child and parent. the child process, because it is
# a Slave, sets up a handler such that, should it's socket ever grow stale,
# will exit the process. this class replaces the HeartBeat class from