envato / event_sourcery

A library for building event sourced applications in Ruby
MIT License
84 stars 10 forks source link

ESPRunner bugfix: cast status.success? to a boolean #203

Closed stevehodgkiss closed 6 years ago

stevehodgkiss commented 6 years ago

The return value can be nil if the process is still alive after being sent a KILL signal, for example with max_seconds_for_processes_to_terminate set to 0.

[1] pry(#<EventSourcery::EventProcessing::ESPRunner>)> status
=> #<Process::Status: pid 92671 SIGKILL (signal 9)>

This situation causes Process.exit(nil) to throw an error.