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 /io.c | |
parent | dc22968239d57dddbfb5ef33ff07d013e7518611 (diff) | |
download | ruby-2c7576a0214aab975bc6b7ac6e04eaa5aaf07d55.tar.gz |
* 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 'io.c')
-rw-r--r-- | io.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -155,6 +155,11 @@ static int max_file_descriptor = NOFILE; do { \ if (max_file_descriptor < (fd)) max_file_descriptor = (fd); \ } while (0) +void +rb_update_max_fd(int fd) +{ + UPDATE_MAXFD(fd); +} #define argf_of(obj) (*(struct argf *)DATA_PTR(obj)) #define ARGF argf_of(argf) |