lib/bluepill/process.rb in bluepill-0.0.23 vs lib/bluepill/process.rb in bluepill-0.0.24

- old
+ new

@@ -133,11 +133,11 @@ end # State machine methods def dispatch!(event) @event_mutex.synchronize do - self.send("#{event}!") + self.send("#{event}") end end def record_transition(transition) unless transition.loopback? @@ -315,10 +315,11 @@ def actual_pid @actual_pid ||= begin if pid_file if File.exists?(pid_file) - File.read(pid_file).to_i + str = File.read(pid_file) + str.to_i if str.size > 0 else logger.warning("pid_file #{pid_file} does not exist or cannot be read") nil end end \ No newline at end of file