1件ヒット
[1-1件を表示]
(0.010秒)
別のキーワード
ライブラリ
- ビルトイン (1)
検索結果
-
Process
. last _ status -> Process :: Status | nil (18703.0) -
カレントスレッドで最後に終了した子プロセスのステータスを返します。
...です。
Process.wait Process.spawn("ruby", "-e", "exit 13")
Process.last_status # => #<Process::Status: pid 4825 exit 13>
カレントスレッドで子プロセスを実行したことがない場合は nil を返します。
Process.last_status # => nil
@see Process::Status
@see...