IO.popen fd set close_on_exec flag by default

This commit is contained in:
ksss
2014-12-04 10:21:29 +09:00
parent 9439b981d8
commit e61c469724
2 changed files with 16 additions and 6 deletions
+1
View File
@@ -321,6 +321,7 @@ end
assert('IO.popen') do
io = IO.popen("ls")
assert_true io.close_on_exec?
assert_equal Fixnum, io.pid.class
ls = io.read
assert_equal ls.class, String