242件ヒット
[1-100件を表示]
(0.122秒)
別のキーワード
クラス
- Mutex (2)
-
Process
:: Status (165) - SystemExit (11)
- Thread (55)
-
Thread
:: Mutex (9)
検索結果
先頭5件
-
Thread
# status -> String | false | nil (18134.0) -
生きているスレッドの状態を文字列 "run"、"sleep", "aborting" のいず れかで返します。正常終了したスレッドに対して false、例外によ り終了したスレッドに対して nil を返します。
...hread.new { sleep }
d.kill #=> #<Thread:0x401b3678 aborting>
a.status #=> nil
b.status #=> "sleep"
c.status #=> false
d.status #=> "aborting"
Thread.current.status #=> "run"
@see Thread#alive?, Thread#stop?... -
SystemExit
# status -> Integer (18116.0) -
例外オブジェクトに保存された終了ステータスを返します。
...します。
終了ステータスは Kernel.#exit や SystemExit.new などで設定されます。
例:
begin
exit 1
rescue SystemExit => err
p err.status # => 1
end
begin
raise SystemExit.new(1, "dummy exit")
rescue SystemExit => err
p err.status # => 1
end... -
Process
:: Status # exitstatus -> Integer | nil (9103.0) -
exited? が真の場合プロセスが返した終了ステータスの整数を、そ うでない場合は nil を返します。
exited? が真の場合プロセスが返した終了ステータスの整数を、そ
うでない場合は nil を返します。 -
Process
:: Status # inspect -> String (3027.0) -
自身を人間が読みやすい形の文字列表現にして返します。
...トで返します。
: 正常終了のとき
#<Process::Status: pid=18262,exited(nnn)>
: シグナルによる停止のとき
#<Process::Status: pid=18262,stopped(SIGxxx=nnn)>
: シグナルによる終了のとき
#<Process::Status: pid=18262,signaled(SIGxxx=nnn)>
: コアダンプしたとき......(このステータスの表示はシステムに依存します)
#<Process::Status: pid=18262,coredumped>... -
Process
:: Status # &(other) -> Integer (3003.0) -
self.to_i & other と同じです。 このメソッドは後方互換性のためにあります。
self.to_i & other と同じです。
このメソッドは後方互換性のためにあります。
@param other 自身との & 演算をしたい整数を指定します。 -
Process
:: Status # ==(other) -> bool (3003.0) -
同じステータスの場合に真を返します。
同じステータスの場合に真を返します。
other が数値の場合、self.to_i との比較が行われます。こ
れは後方互換性のためです。
@param other 自身と比較したいオブジェクトを指定します。 -
Process
:: Status # >>(num) -> Integer (3003.0) -
self.to_i >> num と同じです。
self.to_i >> num と同じです。
@param num 整数を指定します。
fork { exit 99 } #=> 26563
Process.wait #=> 26563
$?.to_i #=> 25344
$? >> 8 #=> 99 -
Process
:: Status # coredump? -> bool (3003.0) -
終了時にコアダンプしていたら真を返します。
終了時にコアダンプしていたら真を返します。
このメソッドは signaled? が真のときにしか意味を持ちません。
このメソッドはシステムに依存します。サポートしないプラットフォー
ムでは常に false を返します。 -
Process
:: Status # exited? -> bool (3003.0) -
プロセスが exit(2) などにより正常に終了した場合に、真を返します。 そうでない場合に false を返します。
プロセスが exit(2) などにより正常に終了した場合に、真を返します。
そうでない場合に false を返します。 -
Process
:: Status # pid -> Integer (3003.0) -
終了したプロセスのプロセス ID を返します。
終了したプロセスのプロセス ID を返します。