[前][次][番号順一覧][スレッド一覧]

ruby-changes:21555

From: akr <ko1@a...>
Date: Tue, 1 Nov 2011 19:01:11 +0900 (JST)
Subject: [ruby-changes:21555] akr:r33604 (trunk): * io.c (rb_io_reopen): call rb_maygvl_fd_fix_cloexec after freopen().

akr	2011-11-01 19:01:01 +0900 (Tue, 01 Nov 2011)

  New Revision: 33604

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=33604

  Log:
    * io.c (rb_io_reopen): call rb_maygvl_fd_fix_cloexec after freopen().

  Modified files:
    trunk/ChangeLog
    trunk/io.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 33603)
+++ ChangeLog	(revision 33604)
@@ -1,3 +1,7 @@
+Tue Nov  1 19:00:30 2011  Tanaka Akira  <akr@f...>
+
+	* io.c (rb_io_reopen): call rb_maygvl_fd_fix_cloexec after freopen().
+
 Tue Nov  1 17:17:26 2011  NARUSE, Yui  <naruse@r...>
 
 	* file.c (file_expand_path): reset coderange after expanding path.
Index: io.c
===================================================================
--- io.c	(revision 33603)
+++ io.c	(revision 33604)
@@ -6059,6 +6059,7 @@
             rb_sys_fail_path(fptr->pathv);
         }
         fptr->fd = fileno(fptr->stdio_file);
+        rb_maygvl_fd_fix_cloexec(fptr->fd);
 #ifdef USE_SETVBUF
         if (setvbuf(fptr->stdio_file, NULL, _IOFBF, 0) != 0)
             rb_warn("setvbuf() can't be honoured for %s", RSTRING_PTR(fptr->pathv));

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]