1 $-w = $stdout.sync = $stderr.sync = Thread.abort_on_exception = true
3 require 'sleepy_penguin'
7 rbimp = Fcntl::FD_CLOEXEC & pipe[0].fcntl(Fcntl::F_GETFD)
8 ours = Fcntl::FD_CLOEXEC & io.fcntl(Fcntl::F_GETFD)
9 assert_equal rbimp, ours, "CLOEXEC default does not match Ruby implementation"
11 pipe.each { |io| io.close }