mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
a52dce92f4
commit
d4d13162c5
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Thu Apr 14 00:41:09 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
|
||||
|
||||
* thread.c (thread_fd_close_i): IOError exception should be assigned
|
||||
to rb_thread_t::thrown_errinfo.
|
||||
|
||||
Wed Apr 13 20:12:26 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* io.c (rb_io_fdatasync): remove unused variable.
|
||||
|
|
2
thread.c
2
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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue