lib/main_loop/loop.rb in main_loop-0.1.2.16825 vs lib/main_loop/loop.rb in main_loop-0.1.2.16854

- old
+ new

@@ -35,10 +35,12 @@ logger.debug("command:#{event}") case event when 'term' term(event) + when 'crash' + crash(event) when /sig:/ signal(event) when /reap:/ reap(event) when nil @@ -79,9 +81,13 @@ end end def term(_command) @dispatcher.term unless @dispatcher.terminating? + end + + def crash(_command) + @dispatcher.crash end def reap(command) _, id, status = command.split(':') @dispatcher.reap_by_id(id, status)