summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-19 07:10:19 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-19 07:10:19 +0000
commit2c7576a0214aab975bc6b7ac6e04eaa5aaf07d55 (patch)
treeca531b7be19370d264e8c6655d03b034bc70fbda /io.c
parentdc22968239d57dddbfb5ef33ff07d013e7518611 (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 'io.c')
-rw-r--r--io.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/io.c b/io.c
index 090f383849..f53c5daf53 100644
--- a/io.c
+++ b/io.c
@@ -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)