3件ヒット
[1-3件を表示]
(0.022秒)
ライブラリ
- ビルトイン (2)
キーワード
-
$ ? (1) -
NEWS for Ruby 2
. 5 . 0 (1)
検索結果
先頭3件
-
Process
. last _ status -> Process :: Status | nil (63640.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 $? -
Kernel
$ $ ? -> Process :: Status | nil (319.0) -
このスレッドで最後に終了した子プロセスのステータスです。
このスレッドで最後に終了した子プロセスのステータスです。
Process::Status オブジェクトが入っています。
子プロセスの終了時ステータスは Process::Status#exitstatus で得られます。
この変数はスレッドローカルで読み取り専用です。
@see Process.#wait
@see Process.last_status -
NEWS for Ruby 2
. 5 . 0 (73.0) -
NEWS for Ruby 2.5.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
...NEWS for Ruby 2.5.0
このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。
それぞれのエントリーは参照情報があるため短いです。
十分な情報と共に書かれた全ての変更のリス...