ruby-changes:28386
From: kosaki <ko1@a...>
Date: Wed, 24 Apr 2013 14:16:04 +0900 (JST)
Subject: [ruby-changes:28386] kosaki:r40438 (trunk): * io.c (rb_fd_fix_cloexec): use rb_update_max_fd().
kosaki 2013-04-24 14:15:56 +0900 (Wed, 24 Apr 2013) New Revision: 40438 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40438 Log: * io.c (rb_fd_fix_cloexec): use rb_update_max_fd(). Modified files: trunk/ChangeLog trunk/io.c Index: ChangeLog =================================================================== --- ChangeLog (revision 40437) +++ ChangeLog (revision 40438) @@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Apr 24 15:55:06 2013 KOSAKI Motohiro <kosaki.motohiro@g...> + + * io.c (rb_fd_fix_cloexec): use rb_update_max_fd(). + Wed Apr 24 14:08:00 2013 Zachary Scott <zachary@z...> * numeric.c: Fix wiki link on Float imprecision in overview, patched Index: io.c =================================================================== --- io.c (revision 40437) +++ io.c (revision 40438) @@ -216,9 +216,8 @@ rb_maygvl_fd_fix_cloexec(int fd) https://github.com/ruby/ruby/blob/trunk/io.c#L216 void rb_fd_fix_cloexec(int fd) { - rb_atomic_t afd = (rb_atomic_t)fd; rb_maygvl_fd_fix_cloexec(fd); - if (max_file_descriptor < afd) max_file_descriptor = afd; + rb_update_max_fd(fd); } int -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/