diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-08 16:52:30 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-08 16:52:30 +0000 |
commit | c823659514e64f93dc20991f73ee8acdcd3777eb (patch) | |
tree | 1c15863a56cd8e779b2df3975944394e603b3d1c | |
parent | 6bf2fb4aabe8133028d7bc189e67cd26604f9987 (diff) | |
download | ruby-c823659514e64f93dc20991f73ee8acdcd3777eb.tar.gz |
* io.c (Init_IO): max_file_descriptor_lock is per-process resource.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/mvm@19261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | io.c | 4 |
2 files changed, 5 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Tue Sep 9 01:52:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * io.c (Init_IO): max_file_descriptor_lock is per-process resource. + Tue Sep 9 00:55:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> * eval.c (ruby_vm_init): split from ruby_init. @@ -4141,7 +4141,6 @@ static VALUE rb_file_open_internal(VALUE io, VALUE filename, const char *modestr) { return rb_file_openat_internal(io, filename, NULL, modestr); - } VALUE @@ -8277,6 +8276,7 @@ void Init_IO(void) { Init_File(); + ruby_native_thread_lock_initialize(&max_file_descriptor_lock); } void @@ -8590,6 +8590,4 @@ InitVM_IO(rb_vm_t *vm) sym_open_args = ID2SYM(rb_intern("open_args")); sym_textmode = ID2SYM(rb_intern("textmode")); sym_binmode = ID2SYM(rb_intern("binmode")); - - ruby_native_thread_lock_initialize(&max_file_descriptor_lock); } |