diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-19 07:10:19 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-19 07:10:19 +0000 |
commit | 2c7576a0214aab975bc6b7ac6e04eaa5aaf07d55 (patch) | |
tree | ca531b7be19370d264e8c6655d03b034bc70fbda /thread_pthread.c | |
parent | dc22968239d57dddbfb5ef33ff07d013e7518611 (diff) |
* io.c (rb_update_max_fd): new function.
* internal.h (rb_update_max_fd): declare rb_update_max_fd.
* thread_pthread.c (rb_thread_create_timer_thread): update max fd when
timer thread pipe is created.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32579 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 13a8b359e1..8ef34dd15f 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1191,6 +1191,8 @@ rb_thread_create_timer_thread(void) if (err != 0) { rb_bug_errno("thread_timer: Failed to create communication pipe for timer thread", errno); } + rb_update_max_fd(timer_thread_pipe[0]); + rb_update_max_fd(timer_thread_pipe[1]); #if defined(HAVE_FCNTL) && defined(F_GETFL) && defined(F_SETFL) { int oflags; |