path: root/io.c
diff options
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-19 12:18:41 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-19 12:18:41 +0000
commit898374126e2c2632bc9bf0308407898af1f4ff82 (patch)
tree32ca46094134a1699982fd0db09f19a0f0e59079 /io.c
parent4ae55eb1c00889ccf923b2983229e556d7268484 (diff)
revert O_CLOEXEC patch series completely.
because boron chkbuild test result says, An old linux kernel ignore O_CLOEXEC silently instead of return an error. It may lead to bring new security risk. So, we have to be pending it until finish to implement proper fallback logic. git-svn-id: svn+ssh:// b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
1 files changed, 0 insertions, 4 deletions
diff --git a/io.c b/io.c
index 925bfd4ea0..154a01943b 100644
--- a/io.c
+++ b/io.c
@@ -10573,10 +10573,6 @@ Init_IO(void)
/* Try to minimize cache effects of the I/O to and from this file. */
rb_file_const("DIRECT", INT2FIX(O_DIRECT));
-#ifdef O_CLOEXEC
- /* enable close-on-exec flag */
- rb_file_const("CLOEXEC", INT2FIX(O_CLOEXEC)); /* Linux, POSIX-2008. */
sym_mode = ID2SYM(rb_intern("mode"));
sym_perm = ID2SYM(rb_intern("perm"));