Ruby 4.0 リファレンスマニュアル

instance method Process::Status#pid

pid -> Integer[permalink][rdoc][edit]
() → Integer

終了したプロセスのプロセス ID を返します。