るりまサーチ

最速Rubyリファレンスマニュアル検索!
227件ヒット [1-100件を表示] (0.055秒)

別のキーワード

  1. _builtin exit
  2. thread exit
  3. monitor exit
  4. irb irb_exit
  5. _builtin exit!

クラス

モジュール

キーワード

検索結果

<< 1 2 3 > >>

Process.exit(status = true) -> () (18126.0)

プロセスを終了します。関数 Kernel.#exit と同じです。

...プロセスを終了します。関数 Kernel.#exit と同じです。

@param status 終了ステータスを boolean か整数で指定します。true の場合は成功を、false は失敗を意味します。

@see exit(3)...

Thread.exit -> () (18120.0)

カレントスレッドに対して Thread#exit を呼びます。

...カレントスレッドに対して Thread#exit を呼びます。...

Process.exit!(status = false) -> () (6126.0)

関数 Kernel.#exit! と同じです。

...関数 Kernel.#exit! と同じです。

@param status 終了ステータスを boolean か整数で指定します。true の場合は成功を、false は失敗を意味します。

@see _exit(2)...

SystemExit.new(status = 0, error_message = "") -> SystemExit (3103.0)

SystemExit オブジェクトを生成して返します。

...SystemExit オブジェクトを生成して返します。

@param status 終了ステータスを整数で指定します。

@param error_message エラーメッセージを文字列で指定します。

例:

ex = SystemExit.new(1)
p ex.status # => 1...

Thread.kill(thread) -> Thread (19.0)

指定したスレッド thread に対して Thread#exit を呼びます。終了したスレッドを返します。

...指定したスレッド thread に対して Thread#exit を呼びます。終了したスレッドを返します。

@param thread 終了したい Thread オブジェクトを指定します。

th = Thread.new do
end

p Thread.kill(th) #=> #<Thread:0x40221bc8 dead>...

絞り込み条件を変える

Process.last_status -> Process::Status | nil (15.0)

カレントスレッドで最後に終了した子プロセスのステータスを返します。

...テータスを返します。

変数 $? の値と同じです。

Process.wait Process.spawn("ruby", "-e", "exit 13")
Process.last_status # => #<Process::Status: pid 4825 exit 13>

カレントスレッドで子プロセスを実行したことがない場合は nil を返します。...

IO.popen("-", mode = "r", opt={}) -> IO (9.0)

第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。

...io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
exit

end

ブロックを与えられた場合、親プロセスでは生成した IO オブジェクトを引数に
ブロックを実行し、...

IO.popen("-", mode = "r", opt={}) {|io| ... } -> object (9.0)

第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。

...io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
exit

end

ブロックを与えられた場合、親プロセスでは生成した IO オブジェクトを引数に
ブロックを実行し、...

IO.popen(env, "-", mode = "r", opt={}) -> IO (9.0)

第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。

...io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
exit

end

ブロックを与えられた場合、親プロセスでは生成した IO オブジェクトを引数に
ブロックを実行し、...

IO.popen(env, "-", mode = "r", opt={}) {|io| ... } -> object (9.0)

第一引数に文字列 "-" が指定された時、fork(2) を 行い子プロセスの標準入出力との間にパイプラインを確立します。 親プロセスでは IO オブジェクトを返し、子プロセスでは nil を返します。

...io.puts "foo"
p io.gets # => "child output: foo\n"
io.close
else # child
s = gets
print "child output: " + s
exit

end

ブロックを与えられた場合、親プロセスでは生成した IO オブジェクトを引数に
ブロックを実行し、...

絞り込み条件を変える

<< 1 2 3 > >>