diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-01 03:04:53 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-11-01 03:04:53 +0000 |
commit | 1bbae2431ff1746cbc8fee66df69131f0e2d7294 (patch) | |
tree | 6d77a7b4f1ba5b8a909b2bc53d20ad9a6a62bcb3 /ext | |
parent | c16f98ab0a4976998d7ff35ffbbb4f3ca110439b (diff) | |
download | ruby-1bbae2431ff1746cbc8fee66df69131f0e2d7294.tar.gz |
add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/dbm/dbm.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c index 9b52a4eac2..6e6ac909cc 100644 --- a/ext/dbm/dbm.c +++ b/ext/dbm/dbm.c @@ -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); |