From 989d3ef272f1f15981c5eed59bd0a29075fd43b1 Mon Sep 17 00:00:00 2001 From: usa Date: Thu, 10 Jul 2008 20:09:38 +0000 Subject: [PATCH] * include/ruby/win32.h (pipe): prohibit inheritance. fixed: [ruby-dev:35421] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18015 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ include/ruby/win32.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9b45eaf68b..ad586d5a68 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Fri Jul 11 05:07:46 2008 NAKAMURA Usaku + + * include/ruby/win32.h (pipe): prohibit inheritance. + fixed: [ruby-dev:35421] + Fri Jul 11 00:56:46 2008 Koichi Sasada * thread.c (thread_create_core): fix GC problem. diff --git a/include/ruby/win32.h b/include/ruby/win32.h index 12b8276272..e871699749 100644 --- a/include/ruby/win32.h +++ b/include/ruby/win32.h @@ -134,7 +134,7 @@ extern DWORD rb_w32_osid(void); #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)