lib/zeus/dsl.rb
# We send STOP before actually killing the processes here.
# This is to prevent parents from respawning before all the children
# are killed. This prevents a race condition.
We send STOP before actually killing the processes here.
This is to prevent parents from respawning before all the children
are killed. This prevents a race condition.
We send STOP before actually killing the processes here . This is to prevent parents from respawning before all the children are killed . This prevents a race condition .
def kill!
        Process.kill("STOP", pid) if pid
        stages.each { |stage| stage.kill! }
        old_pid  = pid
        self.pid = nil
        Process.kill("KILL", old_pid) if old_pid
      end
def kill! Process . kill ( "STOP" , pid ) if pid stages . each { | stage | stage . kill! } old_pid = pid self . pid = nil Process . kill ( "KILL" , old_pid ) if old_pid end
We send STOP before actually killing the processes here.
We send STOP before actually killing the processes here .
# Protected methods don't work with each(&:m) notation.