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

ruby-changes:6499

From: usa <ko1@a...>
Date: Fri, 11 Jul 2008 05:09:54 +0900 (JST)
Subject: [ruby-changes:6499] Ruby:r18015 (trunk): * include/ruby/win32.h (pipe): prohibit inheritance.

usa	2008-07-11 05:09:38 +0900 (Fri, 11 Jul 2008)

  New Revision: 18015

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

  Log:
    * include/ruby/win32.h (pipe): prohibit inheritance.
      fixed: [ruby-dev:35421]
    

  Modified files:
    trunk/ChangeLog
    trunk/include/ruby/win32.h

Index: include/ruby/win32.h
===================================================================
--- include/ruby/win32.h	(revision 18014)
+++ include/ruby/win32.h	(revision 18015)
@@ -134,7 +134,7 @@
 #define utime(_p, _t)		rb_w32_utime(_p, _t)
 #define lseek(_f, _o, _w)	_lseeki64(_f, _o, _w)
 
-#define pipe(p)			_pipe(p, 65536L, 0)
+#define pipe(p)			_pipe(p, 65536L, _O_NOINHERIT)
 #define close(h)		rb_w32_close(h)
 #define fclose(f)		rb_w32_fclose(f)
 #define read(f, b, s)		rb_w32_read(f, b, s)
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 18014)
+++ ChangeLog	(revision 18015)
@@ -1,3 +1,8 @@
+Fri Jul 11 05:07:46 2008  NAKAMURA Usaku  <usa@r...>
+
+	* include/ruby/win32.h (pipe): prohibit inheritance.
+	  fixed: [ruby-dev:35421]
+
 Fri Jul 11 00:56:46 2008  Koichi Sasada  <ko1@a...>
 
 	* thread.c (thread_create_core): fix GC problem.

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

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