Sha256: bdc20393f9cc74386a6bbf1552f8a4f5e782d0ceaf627df7ed65bbaa8aefcfed

Contents?: true

Size: 188 Bytes

Versions: 5

Compression:

Stored size: 188 Bytes

Contents

module ProcessExtensions
  def exist?(pid)
    kill(0, pid) rescue false
  end
  alias exists? exist?
  
  def kill!(pid)
    kill('KILL', pid)
  end
end

Process.extend ProcessExtensions

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
elia-2.4.2.pre lib/process_extensions.rb
elia-2.4.1 lib/process_extensions.rb
elia-2.3.2 lib/process_extensions.rb
elia-1.2.0 lib/process_extensions.rb
elia-1.1.0 lib/process_extensions.rb