diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/ruby/win32.h | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Fri Jul 11 05:07:46 2008 NAKAMURA Usaku <usa@ruby-lang.org> + + * include/ruby/win32.h (pipe): prohibit inheritance. + fixed: [ruby-dev:35421] + Fri Jul 11 00:56:46 2008 Koichi Sasada <ko1@atdot.net> * 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) |