ruby-changes:20198
From: naruse <ko1@a...>
Date: Mon, 27 Jun 2011 11:43:09 +0900 (JST)
Subject: [ruby-changes:20198] naruse:r32246 (trunk): * thread_pthread.c (rb_thread_create_timer_thread):
naruse 2011-06-27 11:43:03 +0900 (Mon, 27 Jun 2011) New Revision: 32246 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=32246 Log: * thread_pthread.c (rb_thread_create_timer_thread): the type of retrun value of write(2) is ssize_t. Modified files: trunk/ChangeLog trunk/thread_pthread.c Index: ChangeLog =================================================================== --- ChangeLog (revision 32245) +++ ChangeLog (revision 32246) @@ -1,6 +1,11 @@ +Mon Jun 27 11:41:47 2011 NARUSE, Yui <naruse@r...> + + * thread_pthread.c (rb_thread_create_timer_thread): + the type of retrun value of write(2) is ssize_t. + Mon Jun 27 09:57:02 2011 Koichi Sasada <ko1@a...> - * thread_pthread.c (rb_thread_create_timer_thread): + * thread_pthread.c (rb_thread_create_timer_thread): Fixes missing initialization of oflags. Mon Jun 27 09:07:42 2011 Koichi Sasada <ko1@a...> Index: thread_pthread.c =================================================================== --- thread_pthread.c (revision 32245) +++ thread_pthread.c (revision 32246) @@ -993,7 +993,7 @@ void rb_thread_wakeup_timer_thread(void) { - int result; + ssize_t result; /* already opened */ if (timer_thread_pipe_owner_process == getpid()) { @@ -1023,7 +1023,7 @@ { const size_t buff_size = 1024; char buff[buff_size]; - int result; + ssize_t result; retry: result = read(timer_thread_pipe[0], buff, buff_size); if (result < 0) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/