Sha256: cb29ffb3d7bdac37b0e1db3b0f303715997f73b4812be1c94bcf6a0a81ff57f1

Contents?: true

Size: 330 Bytes

Versions: 3

Compression:

Stored size: 330 Bytes

Contents

class Eye::Trigger::StopChildren < Eye::Trigger

  # Kill process children when parent process crashed, or stopped:
  #
  # trigger :stop_children, :event => [:stopped, :crashed]

  param :timeout, [Fixnum, Float], nil, 60

  def check(trans)
    debug 'stopping children'
    process.children.pmap { |pid, c| c.stop }
  end

end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
reel-eye-0.5.2.1 lib/eye/trigger/stop_children.rb
reel-eye-0.5.2 lib/eye/trigger/stop_children.rb
eye-0.5.2 lib/eye/trigger/stop_children.rb