Class Slave::LifeLine
In: lib/slave.rb
lib/slave-1.2.1.rb
Parent: Object

the LifeLine class is used to communitacte 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 previous Slave versions.

Methods

Constants

FDS = ThreadSafeHash.new
DELEGATED = %w( puts gets read write close flush each )
FDS = ThreadSafeHash.new
DELEGATED = %w( puts gets read write close flush each )

External Aliases

"cut" -> "release"
"cut" -> "release"

Public Class methods

Public Instance methods

[Validate]