るりまサーチ (Ruby 2.2.0)

最速Rubyリファレンスマニュアル検索!
1件ヒット [1-1件を表示] (0.046秒)
トップページ > バージョン:2.2.0[x] > クエリ:_builtin[x] > クエリ:errno[x] > クエリ:wait2[x] > クエリ:wait[x] > 種類:クラス[x]

別のキーワード

  1. io/wait wait_writable
  2. conditionvariable wait
  3. io wait_writable
  4. _builtin wait
  5. io/wait wait

ライブラリ

検索結果

Process::Status (24172.0)

プロセスの終了ステータスを表すクラスです。 メソッド Process.#wait2 などの返り値として使われます。

プロセスの終了ステータスを表すクラスです。
メソッド Process.#wait2 などの返り値として使われます。

=== 使用例

wait を使用した例

fork { exit }
Process.wait
case
when $?.signaled?
p "child #{$?.pid} was killed by signal #{$?.termsig}"
if $?.coredump? # システムがこのステータスをサポートしてなければ常にfalse
p "child #{$?.pid} dumped core."
end
...