summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-14 14:13:46 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-02-14 14:13:46 +0000
commitd7feebb4b39be7886735acea73de825c5d54e39e (patch)
tree08957f6b9d68627c5e6fca96c728da2727bb4952 /thread.c
parentfd569ed7ca7bfdbc8c688c5140fe67f92d5dba05 (diff)
* thread.c (rb_thread_io_blocking_region): reset th->waiting_fd
after blocking region, because remaining waiting_fd might cause unnecessary IOError. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30873 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread.c b/thread.c
index 7108f586af..927dbc4131 100644
--- a/thread.c
+++ b/thread.c
@@ -1151,6 +1151,7 @@ rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd)
val = func(data1);
saved_errno = errno;
}, ubf_select, th);
+ th->waiting_fd = -1;
errno = saved_errno;
return val;