summaryrefslogtreecommitdiff
path: root/ext/dbm
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-01 03:04:53 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-01 03:04:53 +0000
commit1bbae2431ff1746cbc8fee66df69131f0e2d7294 (patch)
tree6d77a7b4f1ba5b8a909b2bc53d20ad9a6a62bcb3 /ext/dbm
parentc16f98ab0a4976998d7ff35ffbbb4f3ca110439b (diff)
add comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33599 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dbm')
-rw-r--r--ext/dbm/dbm.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index 9b52a4e..6e6ac90 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);