summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index 14c2a89e42..8b7f6364f7 100644
--- a/thread.c
+++ b/thread.c
@@ -931,8 +931,8 @@ rb_thread_blocking_region(
VALUE val;
rb_thread_t *th = GET_THREAD();
- if (ubf == RB_UBF_DFL) {
- ubf = ubf_select;
+ if (ubf == RUBY_UBF_IO || ubf == RUBY_UBF_PROCESS) {
+ ubf = ubf_select;n
data2 = th;
}