Sha256: 6ef18445712bc4d61bf400b965d6c0cde9cfe40b6d38acbaaf7ea29b9705d40f

Contents?: true

Size: 247 Bytes

Versions: 6

Compression:

Stored size: 247 Bytes

Contents

class ProconBypassMan::ProcessChecker
  # @param [integer] pid
  # @return [Boolean]
  def self.running?(pid)
    begin
      Process.kill(0, pid)
      true
    rescue Errno::ESRCH
      false
    rescue Errno::EPERM
      true
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/support/proccess_cheacker.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/support/proccess_cheacker.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/support/proccess_cheacker.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/support/proccess_cheacker.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/support/proccess_cheacker.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/support/proccess_cheacker.rb