mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7ae60a6b0d
commit
24176a8d5d
1 changed files with 2 additions and 2 deletions
4
io.c
4
io.c
|
@ -226,7 +226,7 @@ rb_cloexec_dup2(int oldfd, int newfd)
|
||||||
ret = dup3(oldfd, newfd, O_CLOEXEC);
|
ret = dup3(oldfd, newfd, O_CLOEXEC);
|
||||||
if (ret != -1)
|
if (ret != -1)
|
||||||
return ret;
|
return ret;
|
||||||
/* dup3 is available since Linux 2.6.27. */
|
/* dup3 is available since Linux 2.6.27, glibc 2.9. */
|
||||||
if (errno == ENOSYS) {
|
if (errno == ENOSYS) {
|
||||||
try_dup3 = 0;
|
try_dup3 = 0;
|
||||||
ret = dup2(oldfd, newfd);
|
ret = dup2(oldfd, newfd);
|
||||||
|
@ -261,7 +261,7 @@ rb_cloexec_pipe(int fildes[2])
|
||||||
if (ret != -1)
|
if (ret != -1)
|
||||||
return ret;
|
return ret;
|
||||||
#endif
|
#endif
|
||||||
/* pipe2 is available since Linux 2.6.27. */
|
/* pipe2 is available since Linux 2.6.27, glibc 2.9. */
|
||||||
if (errno == ENOSYS) {
|
if (errno == ENOSYS) {
|
||||||
try_pipe2 = 0;
|
try_pipe2 = 0;
|
||||||
ret = pipe(fildes);
|
ret = pipe(fildes);
|
||||||
|
|
Loading…
Reference in a new issue