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

ruby-changes:43540

From: ngoto <ko1@a...>
Date: Fri, 8 Jul 2016 21:51:42 +0900 (JST)
Subject: [ruby-changes:43540] ngoto:r55613 (trunk): * thread.c (rb_wait_for_single_fd): Clean up fds.revents every time

ngoto	2016-07-08 21:51:36 +0900 (Fri, 08 Jul 2016)

  New Revision: 55613

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

  Log:
    * thread.c (rb_wait_for_single_fd): Clean up fds.revents every time
      before calling ppoll(2). [Bug #12575] [ruby-dev:49725]

  Modified files:
    trunk/ChangeLog
    trunk/thread.c
Index: thread.c
===================================================================
--- thread.c	(revision 55612)
+++ thread.c	(revision 55613)
@@ -3851,6 +3851,7 @@ rb_wait_for_single_fd(int fd, int events https://github.com/ruby/ruby/blob/trunk/thread.c#L3851
     fds.events = (short)events;
 
     do {
+	fds.revents = 0;
 	lerrno = 0;
 	BLOCKING_REGION({
 	    result = ppoll(&fds, 1, timeout, NULL);
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 55612)
+++ ChangeLog	(revision 55613)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jul  8 21:49:28 2016  Naohisa Goto  <ngotogenome@g...>
+
+	* thread.c (rb_wait_for_single_fd): Clean up fds.revents every time
+	  before calling ppoll(2). [Bug #12575] [ruby-dev:49725]
+
 Fri Jul  8 14:16:48 2016  Shugo Maeda  <shugo@r...>
 
 	* vm_args.c (vm_caller_setup_arg_block): call rb_sym_to_proc()

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

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