クラス
- Mutex (2)
-
Process
:: Status (165) - SystemExit (22)
- Thread (66)
-
Thread
:: Mutex (9)
キーワード
-
$ ? (11) - & (11)
- == (11)
- >> (11)
- Lazy (11)
- Status (11)
- Thread (11)
- WUNTRACED (11)
- ` (11)
- alive? (11)
- coredump? (11)
- detach (11)
- exit (22)
- exit! (22)
- exited? (11)
- exitstatus (11)
- inspect (11)
-
last
_ status (7) - new (11)
- pid (11)
- run (11)
- signaled? (11)
- sleep (11)
- stop (11)
- stop? (11)
- stopped? (11)
- stopsig (11)
- success? (11)
- termsig (11)
-
to
_ i (11) -
to
_ s (11) - wait (11)
- wait2 (11)
- waitall (11)
- waitpid (11)
- waitpid2 (11)
- wakeup (11)
検索結果
先頭5件
-
Thread
# status -> String | false | nil (29233.0) -
生きているスレッドの状態を文字列 "run"、"sleep", "aborting" のいず れかで返します。正常終了したスレッドに対して false、例外によ り終了したスレッドに対して nil を返します。
..."、"sleep", "aborting" のいず
れかで返します。正常終了したスレッドに対して false、例外によ
り終了したスレッドに対して nil を返します。
Thread#alive? が真を返すなら、このメソッドも真です。
例:
a = Thread.new { raise("die now")......read.new { Thread.stop }
c = Thread.new { Thread.exit }
d = Thread.new { sleep }
d.kill #=> #<Thread:0x401b3678 aborting>
a.status #=> nil
b.status #=> "sleep"
c.status #=> false
d.status #=> "aborting"
Thre......ad.current.status #=> "run"
@see Thread#alive?, Thread#stop?... -
SystemExit
# status -> Integer (29215.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 (23202.0) -
exited? が真の場合プロセスが返した終了ステータスの整数を、そ うでない場合は nil を返します。
...
exited? が真の場合プロセスが返した終了ステータスの整数を、そ
うでない場合は nil を返します。... -
Process
:: Status # success? -> bool (20102.0) -
プロセスの終了状態が成功である場合に true を返します。 そうでない場合に false を返します。
...プロセスの終了状態が成功である場合に true を返します。
そうでない場合に false を返します。... -
Process
. last _ status -> Process :: Status | nil (17334.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 $?... -
Process
:: Status # termsig -> Integer | nil (17202.0) -
signaled? が真の場合プロセスを終了させたシグナル番号を、 そうでない場合は nil を返します。
...signaled? が真の場合プロセスを終了させたシグナル番号を、
そうでない場合は nil を返します。... -
Process
:: Status # inspect -> String (17126.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 # coredump? -> bool (17102.0) -
終了時にコアダンプしていたら真を返します。
...終了時にコアダンプしていたら真を返します。
このメソッドは signaled? が真のときにしか意味を持ちません。
このメソッドはシステムに依存します。サポートしないプラットフォー
ムでは常に false を返します。... -
Process
:: Status # exited? -> bool (17102.0) -
プロセスが exit(2) などにより正常に終了した場合に、真を返します。 そうでない場合に false を返します。
...プロセスが exit(2) などにより正常に終了した場合に、真を返します。
そうでない場合に false を返します。... -
Process
:: Status # signaled? -> bool (17102.0) -
プロセスがハンドラを定義していないシグナルを受けて終了した場合に真 を返します。
プロセスがハンドラを定義していないシグナルを受けて終了した場合に真
を返します。