test/test_integration_cluster.rb
# Returns an array of pids still in the process table, so it should
# be empty for a clean exit.
# Process.kill should raise the Errno::ESRCH exception, indicating the
# process is dead and has been reaped.
Returns an array of pids still in the process table, so it should
be empty for a clean exit.
Process.kill should raise the Errno::ESRCH exception, indicating the
process is dead and has been reaped.
Returns an array of pids still in the process table so it should be empty for a clean exit . Process . kill should raise the Errno :: ESRCH exception indicating the process is dead and has been reaped .
def clean_exit_pids(pids)
    pids.map do |pid|
      begin
        pid if Process.kill 0, pid
      rescue Errno::ESRCH
        nil
      end
    end.compact
  end
def clean_exit_pids ( pids ) pids . map do | pid | begin pid if Process . kill 0 , pid rescue Errno :: ESRCH nil end end . compact end
Returns an array of pids still in the process table, so it should
be empty for a clean exit.
Returns an array of pids still in the process table so it should be empty for a clean exit .
pids
<not_specific>