summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);