better handle cross-thread close under Ruby 1.9.3
commitff020c21f772debbb1a1b247b11325c747288fcb
authorEric Wong <normalperson@yhbt.net>
Thu, 19 May 2011 22:43:18 +0000 (19 22:43 +0000)
committerEric Wong <normalperson@yhbt.net>
Thu, 19 May 2011 22:43:18 +0000 (19 22:43 +0000)
tree9fb7507a98094f7c11d52c839fa842b2f414657a
parentb9b8de52999d6f933f0a21f671fbf8c8f53979c0
better handle cross-thread close under Ruby 1.9.3

We don't want to operate on improper FDs in multithreaded
environment.   This affects MRI despite the GVL since file
descriptors are usually allocated without the GVL held
(open()/accept()).
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
test/test_epoll.rb