diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-27 02:45:30 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-27 02:45:30 +0000 |
commit | c32869dfeb9ce2958759639755419dd80afb8101 (patch) | |
tree | b5048c3a250bbdb1f492a54c750d1792f3524bbe /thread_pthread.c | |
parent | 657e9e2879939338b7e8a57db0917016fa4edc08 (diff) | |
download | ruby-c32869dfeb9ce2958759639755419dd80afb8101.tar.gz |
Addtitional fix for previous commit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32247 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 1ed021b826..3870d1812d 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1018,7 +1018,7 @@ rb_thread_wakeup_timer_thread(void) } } -static int +static ssize_t consume_communication_pipe(void) { const size_t buff_size = 1024; @@ -1058,7 +1058,6 @@ thread_timer(void *p) { rb_global_vm_lock_t *gvl = (rb_global_vm_lock_t *)p; int result; - int len; struct timeval timeout; if (TT_DEBUG) fprintf(stderr, "start timer thread\n"); @@ -1091,7 +1090,7 @@ thread_timer(void *p) /* maybe timeout */ } else if (result > 0) { - len = consume_communication_pipe(); + (void)consume_communication_pipe(); } else { /* result < 0 */ if (errno == EINTR) { |