るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.038秒)
トップページ > クエリ:Process[x] > クエリ:waitpid[x] > クエリ:stopped?[x]

別のキーワード

  1. process waitpid
  2. process waitpid2
  3. _builtin waitpid
  4. _builtin waitpid2
  5. waitpid process

ライブラリ

クラス

検索結果

Process::Status#stopped? -> bool (21149.0)

プロセスが現在停止(終了ではない)している場合に真を返します。 Process.#waitpid に Process::WUNTRACED フラグを設定した 場合にだけ真になりえます。

...プロセスが現在停止(終了ではない)している場合に真を返します。
Process
.#waitpid Process::WUNTRACED フラグを設定した
場合にだけ真になりえます。...

Process::Status (3082.0)

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

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

=== 使用例

wait を使用した例

fork { exit }
Process
.wait
case
when $?.signaled?
p "child #{$?.pid} was killed by signal #{$?.termsig}"...
...テムがこのステータスをサポートしてなければ常にfalse
p "child #{$?.pid} dumped core."
end
when $?.stopped?
# 実際には Process.wait を使用しているので、ここに来ることはない
p "child #{$?.pid} was stopped by signal #{$?.stopsig}"
when...
...

while Process.waitpid(-1, Process::WNOHANG|Process::WUNTRACED)
case
when $?.signaled?
puts " child #{$?.pid} was killed by signal #{$?.termsig}"
if $?.coredump?
puts " child #{$?.pid} dumped core."
end
when $?.stopped?
puts "...