mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
* backport r32579, r32581, r32587 by akr and r32588 by kazu.
r32579: * 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. r32581: * io.c (UPDATE_MAXFD): removed. r32587: * include/ruby/intern.h (rb_update_max_fd): declaration moved from internal.h. * file.c: ditto. * io.c: call rb_update_max_fd for each new fds. * process.c: ditto. * random.c: ditto. * ruby.c: ditto. * ext/io/console/console.c: ditto. * ext/openssl/ossl_bio.c: ditto. * ext/pty/pty.c: ditto. * ext/socket/init.c: ditto. * ext/socket/socket.c: ditto. * ext/socket/ancdata.c: ditto. * ext/socket/unixsocket.c: ditto. r32588: * io.c (rb_update_max_fd): remove parentheses. they are not in macro. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@32591 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ea6044ea36
commit
fdcac09849
15 changed files with 115 additions and 11 deletions
1
ruby.c
1
ruby.c
|
@ -1527,6 +1527,7 @@ load_file_internal(VALUE arg)
|
|||
if ((fd = open(fname, mode)) < 0) {
|
||||
rb_load_fail(fname);
|
||||
}
|
||||
rb_update_max_fd(fd);
|
||||
|
||||
f = rb_io_fdopen(fd, mode, fname);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue