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.
FDS | = | ThreadSafeHash.new |
DELEGATED | = | %w( puts gets read write close flush each ) |
FDS | = | ThreadSafeHash.new |
DELEGATED | = | %w( puts gets read write close flush each ) |
"cut" | -> | "release" |
"cut" | -> | "release" |