ruby-changes:46171
From: nobu <ko1@a...>
Date: Sun, 9 Apr 2017 11:34:55 +0900 (JST)
Subject: [ruby-changes:46171] nobu:r58284 (trunk): vm_core.h: ruby_error_stream_closed
nobu 2017-04-09 11:34:49 +0900 (Sun, 09 Apr 2017) New Revision: 58284 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58284 Log: vm_core.h: ruby_error_stream_closed * vm_core.h (ruby_special_exceptions): renamed ruby_error_closed_stream as ruby_error_stream_closed, like the message. Modified files: trunk/thread.c trunk/vm_core.h Index: thread.c =================================================================== --- thread.c (revision 58283) +++ thread.c (revision 58284) @@ -101,8 +101,6 @@ static int rb_threadptr_pending_interrup https://github.com/ruby/ruby/blob/trunk/thread.c#L101 #define eTerminateSignal INT2FIX(1) static volatile int system_working = 1; -#define closed_stream_error GET_VM()->special_exceptions[ruby_error_closed_stream] - inline static void st_delete_wrap(st_table *table, st_data_t key) { @@ -2211,7 +2209,7 @@ rb_notify_fd_close(int fd) https://github.com/ruby/ruby/blob/trunk/thread.c#L2209 busy = 0; list_for_each(&vm->living_threads, th, vmlt_node) { if (th->waiting_fd == fd) { - VALUE err = th->vm->special_exceptions[ruby_error_closed_stream]; + VALUE err = th->vm->special_exceptions[ruby_error_stream_closed]; rb_threadptr_pending_interrupt_enque(th, err); rb_threadptr_interrupt(th); busy = 1; @@ -4883,7 +4881,7 @@ Init_Thread(void) https://github.com/ruby/ruby/blob/trunk/thread.c#L4881 rb_define_method(rb_cThread, "name=", rb_thread_setname, 1); rb_define_method(rb_cThread, "inspect", rb_thread_inspect, 0); - rb_vm_register_special_exception(ruby_error_closed_stream, rb_eIOError, "stream closed"); + rb_vm_register_special_exception(ruby_error_stream_closed, rb_eIOError, "stream closed"); cThGroup = rb_define_class("ThreadGroup", rb_cObject); rb_define_alloc_func(cThGroup, thgroup_s_alloc); Index: vm_core.h =================================================================== --- vm_core.h (revision 58283) +++ vm_core.h (revision 58284) @@ -426,7 +426,7 @@ enum ruby_special_exceptions { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L426 ruby_error_reenter, ruby_error_nomemory, ruby_error_sysstack, - ruby_error_closed_stream, + ruby_error_stream_closed, ruby_special_error_count }; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/