ruby-changes:26345
From: kosaki <ko1@a...>
Date: Sat, 15 Dec 2012 14:39:45 +0900 (JST)
Subject: [ruby-changes:26345] kosaki:r38396 (trunk): * io.c (rb_io_wait_writable): don't call rb_thread_fd_writable()
kosaki 2012-12-15 14:39:36 +0900 (Sat, 15 Dec 2012) New Revision: 38396 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38396 Log: * io.c (rb_io_wait_writable): don't call rb_thread_fd_writable() when EINTR. EINTR mean signal interrupt was happen. We don't need any wait. Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 38395) +++ ChangeLog (revision 38396) @@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Dec 15 11:54:50 2012 KOSAKI Motohiro <kosaki.motohiro@g...> + + * io.c (rb_io_wait_writable): don't call rb_thread_fd_writable() + when EINTR. EINTR mean signal interrupt was happen. We don't + need any wait. + Sat Dec 15 11:53:36 2012 KOSAKI Motohiro <kosaki.motohiro@g...> * thread.c (rb_thread_wait_fd_rw): remove silly rb_thread_alone() Index: io.c =================================================================== --- io.c (revision 38395) +++ io.c (revision 38396) @@ -1023,7 +1023,6 @@ rb_io_wait_writable(int f) https://github.com/ruby/ruby/blob/trunk/io.c#L1023 #if defined(ERESTART) case ERESTART: #endif - rb_thread_fd_writable(f); return TRUE; case EAGAIN: -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/