summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-29 11:58:30 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-29 11:58:30 +0000
commita9648d1e58260d35438d759dccf81cc45be9b45e (patch)
tree4144d303d746d2e3bb82c3975bfa60e6c82453e0 /io.c
parent4ae2b92576e8e9fc43906e9483c79eff9d0522f7 (diff)
add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/io.c b/io.c
index ddc89cc67e..bde6ff4a36 100644
--- a/io.c
+++ b/io.c
@@ -192,6 +192,7 @@ rb_cloexec_open(const char *pathname, int flags, mode_t mode)
{
int ret;
#ifdef O_CLOEXEC
+ /* O_CLOEXEC is available since Linux 2.6.23. Linux 2.6.18 silently ignore it. */
flags |= O_CLOEXEC;
#endif
ret = open(pathname, flags, mode);