ruby-changes:19231
From: nagachika <ko1@a...>
Date: Thu, 14 Apr 2011 00:43:20 +0900 (JST)
Subject: [ruby-changes:19231] Ruby:r31270 (trunk): * thread.c (thread_fd_close_i): IOError exception should be assigned
nagachika 2011-04-14 00:43:13 +0900 (Thu, 14 Apr 2011) New Revision: 31270 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=31270 Log: * thread.c (thread_fd_close_i): IOError exception should be assigned to rb_thread_t::thrown_errinfo. Modified files: trunk/ChangeLog trunk/thread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 31269) +++ ChangeLog (revision 31270) @@ -1,3 +1,8 @@ +Thu Apr 14 00:41:09 2011 CHIKANAGA Tomoyuki <nagachika00@g...> + + * 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@m...> * io.c (rb_io_fdatasync): remove unused variable. Index: thread.c =================================================================== --- thread.c (revision 31269) +++ thread.c (revision 31270) @@ -1465,7 +1465,7 @@ 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); } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/