Sha256: 6e5c4005c83f1363a80ab8f339413ac3a92a4f9d2e738944f4d13ff7496f199c
Contents?: true
Size: 376 Bytes
Versions: 9
Compression:
Stored size: 376 Bytes
Contents
class Eye::Trigger::StopChildren < Eye::Trigger # Kill process children when parent process crashed, or stopped: # # trigger :stop_children param :timeout, [Fixnum, Float], nil, 60 # default on stopped, crashed param_default :event, [:stopped, :crashed] def check(trans) debug 'stopping children' process.children.pmap { |pid, c| c.stop } end end
Version data entries
9 entries across 9 versions & 2 rubygems