summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-13 15:43:13 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-04-13 15:43:13 +0000
commitd4d13162c570ca80cd13ad3f030a5bddbc3751cc (patch)
treea21dc4660f732c9a703627a5bfa3647f8015bb0e /thread.c
parenta52dce92f40cb0c5bfa83b5785a91e253ca8e1fd (diff)
* thread.c (thread_fd_close_i): IOError exception should be assigned
to rb_thread_t::thrown_errinfo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31270 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 54664a5503..f787bf1499 100644
--- a/thread.c
+++ b/thread.c
@@ -1465,7 +1465,7 @@ thread_fd_close_i(st_data_t key, st_data_t val, st_data_t data)
if (THREAD_IO_WAITING_P(th)) {
native_mutex_lock(&th->interrupt_lock);
if (THREAD_IO_WAITING_P(th) && th->waiting_fd == fd) {
- th->errinfo = th->vm->special_exceptions[ruby_error_closed_stream];
+ th->thrown_errinfo = th->vm->special_exceptions[ruby_error_closed_stream];
RUBY_VM_SET_INTERRUPT(th);
(th->unblock.func)(th->unblock.arg);
}