about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2011-04-10 06:09:40 +0000
committerEric Wong <normalperson@yhbt.net>2011-04-10 06:10:18 +0000
commitfa661e5e53f2375c49073086dbdd166bb361ad83 (patch)
tree9e8d63d12e4d97cc32ea48388afcfa4763d22f36
parent7e77698bffc73032e0cbc8e1179d627a3356572a (diff)
downloadsleepy_penguin-fa661e5e53f2375c49073086dbdd166bb361ad83.tar.gz
Ruby 1.9.3 will release the GVL for IO#close
-rw-r--r--ext/sleepy_penguin/inotify.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/sleepy_penguin/inotify.c b/ext/sleepy_penguin/inotify.c
index 6c126b4..0034355 100644
--- a/ext/sleepy_penguin/inotify.c
+++ b/ext/sleepy_penguin/inotify.c
@@ -4,7 +4,8 @@
 #include <sys/ioctl.h>
 #include "missing_inotify.h"
 #if defined(RFILE) && defined(HAVE_ST_FD) && \
-    defined(HAVE_RB_THREAD_BLOCKING_REGION)
+    defined(HAVE_RB_THREAD_BLOCKING_REGION) && \
+  ! defined(HAVE_RB_THREAD_IO_BLOCKING_REGION)
 #  define NOGVL_CLOSE
 #endif