# File lib/childprocess/unix/process.rb, line 37 def exited? return true if @exit_code assert_started pid, status = ::Process.waitpid2(@pid, ::Process::WNOHANG) log(:pid => pid, :status => status) if pid @exit_code = status.exitstatus || status.termsig end !!pid end