Created
June 26, 2014 20:40
-
-
Save brixen/cf9bf9298632ddd12d73 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
f = open "/dev/null" | |
f.close_on_exec = false | |
f.autoclose = false | |
system("ls", "-l", "/proc/self/fd/#{f.fileno}") | |
p f.closed? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment