7件ヒット
[1-7件を表示]
(0.193秒)
検索結果
-
Process
. last _ status -> Process :: Status | nil (8007.0) -
カレントスレッドで最後に終了した子プロセスのステータスを返します。
...す。
変数 $? の値と同じです。
Process.wait Process.spawn("ruby", "-e", "exit 13")
Process.last_status # => #<Process::Status: pid 4825 exit 13>
カレントスレッドで子プロセスを実行したことがない場合は nil を返します。
Process.last_status #...