⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.93
Server IP:
65.108.141.171
Server:
Linux server.heloix.com 5.4.0-214-generic #234-Ubuntu SMP Fri Mar 14 23:50:27 UTC 2025 x86_64
Server Software:
Apache
PHP Version:
7.4.33
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
usr
/
share
/
ri
/
2.7.0
/
system
/
IO
/
View File Name :
close_on_exec%3d-i.ri
U:RDoc::AnyMethod[iI"close_on_exec=:ETI"IO#close_on_exec=;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"Sets a close-on-exec flag.;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [ I"f = open("/dev/null") ;TI"f.close_on_exec = true ;TI"bsystem("cat", "/proc/self/fd/#{f.fileno}") # cat: /proc/self/fd/3: No such file or directory ;TI"(f.closed? #=> false ;T:@format0o; ; [I"FRuby sets close-on-exec flags of all file descriptors by default ;TI"since Ruby 2.0.0. ;TI"+So you don't need to set by yourself. ;TI"IAlso, unsetting a close-on-exec flag can cause file descriptor leak ;TI"Pif another thread use fork() and exec() (via system() method for example). ;TI"GIf you really needs file descriptor inheritance to child process, ;TI"+use spawn()'s argument such as fd=>fd.;T: @fileI" io.c;T:0@omit_headings_from_table_of_contents_below0I"2ios.close_on_exec = bool -> true or false ;T0[ I" (p1);T@FI"IO;TcRDoc::NormalClass00