# File lib/god/conditions/process_exits.rb, line 36 def register pid = File.read(self.watch.pid_file).strip.to_i begin EventHandler.register(pid, :proc_exit) do |extra| self.info = "process exited #{extra.inspect}" Hub.trigger(self) end rescue StandardError raise EventRegistrationFailedError.new end end