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

ruby-changes:20197

From: ko1 <ko1@a...>
Date: Mon, 27 Jun 2011 09:59:27 +0900 (JST)
Subject: [ruby-changes:20197] ko1:r32245 (trunk): * thread_pthread.c (rb_thread_create_timer_thread):

ko1	2011-06-27 09:59:07 +0900 (Mon, 27 Jun 2011)

  New Revision: 32245

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

  Log:
    * thread_pthread.c (rb_thread_create_timer_thread):
      Fixes missing initialization of oflags.

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32244)
+++ ChangeLog	(revision 32245)
@@ -1,3 +1,8 @@
+Mon Jun 27 09:57:02 2011  Koichi Sasada  <ko1@a...>
+
+	* thread_pthread.c (rb_thread_create_timer_thread): 
+	  Fixes missing initialization of oflags.
+
 Mon Jun 27 09:07:42 2011  Koichi Sasada  <ko1@a...>
 
 	* thread_pthread.c: Stop polling in the timer thread when there are
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 32244)
+++ thread_pthread.c	(revision 32245)
@@ -1137,6 +1137,7 @@
 	    {
 		int oflags;
 #if defined(O_NONBLOCK)
+		oflags = fcntl(timer_thread_pipe[1], F_GETFL);
 		oflags |= O_NONBLOCK;
 		fcntl(timer_thread_pipe[1], F_SETFL, oflags);
 #endif /* defined(O_NONBLOCK) */

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

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