summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-31 23:24:25 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-10-31 23:24:25 +0000
commit24176a8d5d98ea7d1eb3971ffb7fad7f9ccd2adb (patch)
treea482e339df051bbb5fb50e29d4f4afd38c95443f /io.c
parent7ae60a6b0d529ba04b8b59d3e5a58320a54b5878 (diff)
add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/io.c b/io.c
index 7979e2ae08..80e6c28ce1 100644
--- a/io.c
+++ b/io.c
@@ -226,7 +226,7 @@ rb_cloexec_dup2(int oldfd, int newfd)
ret = dup3(oldfd, newfd, O_CLOEXEC);
if (ret != -1)
return ret;
- /* dup3 is available since Linux 2.6.27. */
+ /* dup3 is available since Linux 2.6.27, glibc 2.9. */
if (errno == ENOSYS) {
try_dup3 = 0;
ret = dup2(oldfd, newfd);
@@ -261,7 +261,7 @@ rb_cloexec_pipe(int fildes[2])
if (ret != -1)
return ret;
#endif
- /* pipe2 is available since Linux 2.6.27. */
+ /* pipe2 is available since Linux 2.6.27, glibc 2.9. */
if (errno == ENOSYS) {
try_pipe2 = 0;
ret = pipe(fildes);