1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* ext/gdbm/gdbm.c (fgdbm_reorganize): set close-on-exec flag after

gdbm_reorganize().  gdbm_reorganize() opens a new database internally.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2011-11-13 14:22:17 +00:00
parent abe61eb0d1
commit 4b01d611db
2 changed files with 6 additions and 0 deletions

View file

@ -1,3 +1,8 @@
Sun Nov 13 23:21:24 2011 Tanaka Akira <akr@fsij.org>
* ext/gdbm/gdbm.c (fgdbm_reorganize): set close-on-exec flag after
gdbm_reorganize(). gdbm_reorganize() opens a new database internally.
Sun Nov 13 19:57:18 2011 Tanaka Akira <akr@fsij.org>
* ext/dbm/extconf.rb: rollback for each headers for each libraries.

View file

@ -1052,6 +1052,7 @@ fgdbm_reorganize(VALUE obj)
rb_gdbm_modify(obj);
GetDBM2(obj, dbmp, dbm);
gdbm_reorganize(dbm);
rb_fd_fix_cloexec(gdbm_fdesc(dbm));
return obj;
}