lib/bluepill/process.rb in bluepill-rwgps-0.0.62 vs lib/bluepill/process.rb in bluepill-rwgps-0.0.63

- old
+ new

@@ -395,11 +395,11 @@ def pid_from_file return @actual_pid if cache_actual_pid? && @actual_pid @actual_pid = begin if pid_file - if File.exists?(pid_file) + if File.exist?(pid_file) 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 @@ -420,10 +420,10 @@ def clear_pid @actual_pid = nil end def unlink_pid - File.unlink(pid_file) if pid_file && File.exists?(pid_file) + File.unlink(pid_file) if pid_file && File.exist?(pid_file) rescue Errno::ENOENT end # Internal State Methods def skip_ticks_for(seconds)