るりまサーチ

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

別のキーワード

  1. _builtin file?
  2. _builtin file
  3. base file
  4. file open
  5. file size

ライブラリ

クラス

キーワード

検索結果

<< < 1 2 >>

IO#close_on_exec=(bool) (13.0)

自身に close-on-exec フラグを設定します。

...2)
@param bool 自身の close-on-exec フラグを true か false で指定します。

f = open("/dev/null")
f.close_on_exec = true
system("cat", "/proc/self/fd/#{f.fileno}") # cat: /proc/self/fd/3: No such file or directory
f.closed? #=> false

@see IO#close_on_exec?...
<< < 1 2 >>