Flowdock
method

close_on_exec=

Importance_1
v1_9_1_378 - Show latest stable - 0 notes - Class: IO
close_on_exec=(p1) public

Sets a close-on-exec flag.

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
Show source
Register or log in to add new notes.