* thread_pthread.c (rb_thread_create_timer_thread):
Fixes missing initialization of oflags. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d1d5d5e798
commit
f18cf4f023
@ -1,3 +1,8 @@
|
|||||||
|
Mon Jun 27 09:57:02 2011 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
|
* thread_pthread.c (rb_thread_create_timer_thread):
|
||||||
|
Fixes missing initialization of oflags.
|
||||||
|
|
||||||
Mon Jun 27 09:07:42 2011 Koichi Sasada <ko1@atdot.net>
|
Mon Jun 27 09:07:42 2011 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* thread_pthread.c: Stop polling in the timer thread when there are
|
* thread_pthread.c: Stop polling in the timer thread when there are
|
||||||
|
@ -1137,6 +1137,7 @@ rb_thread_create_timer_thread(void)
|
|||||||
{
|
{
|
||||||
int oflags;
|
int oflags;
|
||||||
#if defined(O_NONBLOCK)
|
#if defined(O_NONBLOCK)
|
||||||
|
oflags = fcntl(timer_thread_pipe[1], F_GETFL);
|
||||||
oflags |= O_NONBLOCK;
|
oflags |= O_NONBLOCK;
|
||||||
fcntl(timer_thread_pipe[1], F_SETFL, oflags);
|
fcntl(timer_thread_pipe[1], F_SETFL, oflags);
|
||||||
#endif /* defined(O_NONBLOCK) */
|
#endif /* defined(O_NONBLOCK) */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user