1
0
Fork 0
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:
akr 2011-11-01 03:04:53 +00:00
parent c16f98ab0a
commit 1bbae2431f

View file

@ -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);