set close-on-exec by default under Ruby 2.0
commit92b55d65af197218b7653018847b14141cd393de
authorEric Wong <normalperson@yhbt.net>
Sat, 13 Apr 2013 11:29:33 +0000 (13 11:29 +0000)
committerEric Wong <normalperson@yhbt.net>
Sat, 13 Apr 2013 11:29:33 +0000 (13 11:29 +0000)
tree1e91f6287bdd57c77f8e0bc7c4173c4034e5cb9c
parent856e3e6706a9ab40047eff22f0ddc9dd40ecdde2
set close-on-exec by default under Ruby 2.0

Ruby 2.0 creates file descriptors with the close-on-exec flag
specified by default.  Unless a user specifies flags explicitly,
assume the default is to set the close-on-exec.

This does not change behavior of Ruby 1.9 and earlier.
12 files changed:
ext/sleepy_penguin/epoll.c
ext/sleepy_penguin/eventfd.c
ext/sleepy_penguin/extconf.rb
ext/sleepy_penguin/inotify.c
ext/sleepy_penguin/signalfd.c
ext/sleepy_penguin/sleepy_penguin.h
ext/sleepy_penguin/timerfd.c
ext/sleepy_penguin/util.c
test/test_epoll.rb
test/test_eventfd.rb
test/test_inotify.rb
test/test_timerfd.rb