mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
4ae2b92576
commit
a9648d1e58
1 changed files with 1 additions and 0 deletions
1
io.c
1
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);
|
||||
|
|
Loading…
Add table
Reference in a new issue