[前][次][番号順一覧][スレッド一覧]

ruby-changes:51805

From: normal <ko1@a...>
Date: Mon, 23 Jul 2018 10:07:55 +0900 (JST)
Subject: [ruby-changes:51805] normal:r64018 (trunk): Revert "thread.c (rb_thread_fd_select): remove unnecessary rb_fd_resize calls"

normal	2018-07-23 10:07:41 +0900 (Mon, 23 Jul 2018)

  New Revision: 64018

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64018

  Log:
    Revert "thread.c (rb_thread_fd_select): remove unnecessary rb_fd_resize calls"
    
    This reverts commit r64017
    (git commit 2ff85621690f4f5b0dff9226ac68418a950a6919).
    
    Nevermind, haven't had enough coffee, yet :x

  Modified files:
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 64017)
+++ thread.c	(revision 64018)
@@ -3965,6 +3965,15 @@ rb_thread_fd_select(int max, rb_fdset_t https://github.com/ruby/ruby/blob/trunk/thread.c#L3965
 	return 0;
     }
 
+    if (read) {
+	rb_fd_resize(max - 1, read);
+    }
+    if (write) {
+	rb_fd_resize(max - 1, write);
+    }
+    if (except) {
+	rb_fd_resize(max - 1, except);
+    }
     return do_select(max, read, write, except, timeout);
 }
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]