# File lib/god/conditions/process_exits.rb, line 57 def deregister pid = self.pid if pid EventHandler.deregister(pid, :proc_exit) msg = "#{self.watch.name} deregistered 'proc_exit' event for pid #{pid}" applog(self.watch, :info, msg) else pid_file_location = self.pid_file || self.watch.pid_file applog(self.watch, :error, "#{self.watch.name} could not deregister: no cached PID or PID file #{pid_file_location} (#{self.base_name})") end end