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@33599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c16f98ab0a
commit
1bbae2431f
1 changed files with 5 additions and 0 deletions
|
@ -137,9 +137,14 @@ fdbm_initialize(int argc, VALUE *argv, VALUE obj)
|
|||
|
||||
FilePathValue(file);
|
||||
|
||||
/*
|
||||
* Note:
|
||||
* The dbm compatibility layer of gdbm 1.9 doesn't respect O_CLOEXEC.
|
||||
*/
|
||||
#ifndef O_CLOEXEC
|
||||
# define O_CLOEXEC 0
|
||||
#endif
|
||||
|
||||
if (flags & RUBY_DBM_RW_BIT) {
|
||||
flags &= ~RUBY_DBM_RW_BIT;
|
||||
dbm = dbm_open(RSTRING_PTR(file), flags|O_CLOEXEC, mode);
|
||||
|
|
Loading…
Reference in a new issue