96件ヒット
[1-96件を表示]
(0.189秒)
クラス
-
PTY
:: ChildExited (12) -
Process
:: Status (48) - SystemExit (12)
- Thread (12)
モジュール
- FileUtils (12)
キーワード
- >> (12)
- exited? (12)
- exitstatus (12)
- sh (12)
-
to
_ i (12)
検索結果
先頭5件
-
PTY
:: ChildExited # status -> Process :: Status (27419.0) -
子プロセスの終了ステータスをProcess::Statusオブジェクトで返します。
...子プロセスの終了ステータスをProcess::Statusオブジェクトで返します。... -
SystemExit
# status -> Integer (27232.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 (24301.0) -
exited? が真の場合プロセスが返した終了ステータスの整数を、そ うでない場合は nil を返します。
...
exited? が真の場合プロセスが返した終了ステータスの整数を、そ
うでない場合は nil を返します。... -
Thread
# status -> String | false | nil (24238.0) -
生きているスレッドの状態を文字列 "run"、"sleep", "aborting" のいず れかで返します。正常終了したスレッドに対して false、例外によ り終了したスレッドに対して nil を返します。
..."aborting" のいず
れかで返します。正常終了したスレッドに対して false、例外によ
り終了したスレッドに対して nil を返します。
Thread#alive? が真を返すなら、このメソッドも真です。
例:
a = Thread.new { raise("die now") }
b = Threa...... 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"
Thread.current.......status #=> "run"
@see Thread#alive?, Thread#stop?... -
Process
:: Status # exited? -> bool (15217.0) -
プロセスが exit(2) などにより正常に終了した場合に、真を返します。 そうでない場合に false を返します。
...プロセスが exit(2) などにより正常に終了した場合に、真を返します。
そうでない場合に false を返します。... -
Process
:: Status # to _ i -> Integer (9107.0) -
C 言語での終了ステータス表現の整数を返します。
...C 言語での終了ステータス表現の整数を返します。
多くのシステムの実装では、この値の上位 8 bit に exit(2)
に渡した終了ステータスが、下位 8 bit にシグナル等で終了した等の情
報が入っています。... -
Process
:: Status # >>(num) -> Integer (6107.0) -
self.to_i >> num と同じです。
...self.to_i >> num と同じです。
@param num 整数を指定します。
fork { exit 99 } #=> 26563
Process.wait #=> 26563
$?.to_i #=> 25344
$? >> 8 #=> 99... -
FileUtils
# sh(*cmd) {|result , status| . . . } (3220.0) -
与えられたコマンドを実行します。
...参照してください。
例:
sh %{ls -ltr}
sh 'ls', 'file with spaces'
# check exit status after command runs
sh %{grep pattern file} do |ok, res|
if ! ok
puts "pattern not found (status = #{res.exitstatus})"
end
end
@see Kernel.#exec, Kernel.#system...