ruby-changes:27511
From: nagachika <ko1@a...>
Date: Sun, 3 Mar 2013 01:46:12 +0900 (JST)
Subject: [ruby-changes:27511] nagachika:r39563 (ruby_2_0_0): merge revision(s) 39184:
nagachika 2013-03-03 01:46:00 +0900 (Sun, 03 Mar 2013) New Revision: 39563 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39563 Log: merge revision(s) 39184: add doc. for IO#close_on_exec=. Modified directories: branches/ruby_2_0_0/ Modified files: branches/ruby_2_0_0/io.c branches/ruby_2_0_0/version.h Index: ruby_2_0_0/io.c =================================================================== --- ruby_2_0_0/io.c (revision 39562) +++ ruby_2_0_0/io.c (revision 39563) @@ -3865,6 +3865,14 @@ rb_io_close_on_exec_p(VALUE io) https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/io.c#L3865 * f.close_on_exec = true * system("cat", "/proc/self/fd/#{f.fileno}") # cat: /proc/self/fd/3: No such file or directory * f.closed? #=> false + * + * Ruby sets close-on-exec flags of all file descriptors by default + * since Ruby 2.0.0. + * So you don't need to set by yourself. + * Also, unsetting a close-on-exec flag can cause file descriptor leak + * if another thread use fork() and exec() (via system() method for example). + * If you really needs file descriptor inheritance to child process, + * use spawn()'s argument such as fd=>fd. */ static VALUE Index: ruby_2_0_0/version.h =================================================================== --- ruby_2_0_0/version.h (revision 39562) +++ ruby_2_0_0/version.h (revision 39563) @@ -1,10 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_0_0/version.h#L1 #define RUBY_VERSION "2.0.0" -#define RUBY_RELEASE_DATE "2013-02-27" -#define RUBY_PATCHLEVEL 2 +#define RUBY_RELEASE_DATE "2013-03-03" +#define RUBY_PATCHLEVEL 3 #define RUBY_RELEASE_YEAR 2013 -#define RUBY_RELEASE_MONTH 2 -#define RUBY_RELEASE_DAY 27 +#define RUBY_RELEASE_MONTH 3 +#define RUBY_RELEASE_DAY 3 #include "ruby/version.h" Property changes on: ruby_2_0_0 ___________________________________________________________________ Modified: svn:mergeinfo Merged /trunk:r39184 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/