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

instance method Process::Waiter#pid

pid -> IntegerRuby 2.2.0 から[permalink][rdoc][edit]

監視している子プロセスのプロセス ID を返します。