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

ruby-changes:13307

From: usa <ko1@a...>
Date: Thu, 24 Sep 2009 12:02:39 +0900 (JST)
Subject: [ruby-changes:13307] Ruby:r25070 (ruby_1_8): * win32/win32.c (rb_w32_select): of course, need to initialize rest.

usa	2009-09-24 12:02:29 +0900 (Thu, 24 Sep 2009)

  New Revision: 25070

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25070

  Log:
    * win32/win32.c (rb_w32_select): of course, need to initialize rest.

  Modified files:
    branches/ruby_1_8/win32/win32.c

Index: ruby_1_8/win32/win32.c
===================================================================
--- ruby_1_8/win32/win32.c	(revision 25069)
+++ ruby_1_8/win32/win32.c	(revision 25070)
@@ -2323,6 +2323,7 @@
 	struct timeval zero;
 	wait.tv_sec = 0; wait.tv_usec = 10 * 1000; // 10ms
 	zero.tv_sec = 0; zero.tv_usec = 0;         //  0ms
+	if (timeout) rest = *timeout;
 	for (;;) {
 	    if (nonsock) {
 		// modifying {else,pipe,cons}_rd is safe because

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

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