module PhusionPassenger::Utils

def process_is_alive?(pid)

Checks whether the given process exists.
def process_is_alive?(pid)
  begin
    Process.kill(0, pid)
    return true
  rescue Errno::ESRCH
    return false
  rescue SystemCallError => e
    return true
  end
end