mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/gdbm/gdbm.c (fgdbm_initialize): set close-on-exec flag.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33657 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
733a57b878
commit
4764756497
2 changed files with 8 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Nov 7 22:03:47 2011 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/gdbm/gdbm.c (fgdbm_initialize): set close-on-exec flag.
|
||||
|
||||
Mon Nov 7 20:31:52 2011 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* ext/psych/lib/psych/scalar_scanner.rb: make sure strings that look
|
||||
|
|
|
@ -222,6 +222,10 @@ fgdbm_initialize(int argc, VALUE *argv, VALUE obj)
|
|||
GDBM_READER|flags, 0, MY_FATAL_FUNC);
|
||||
}
|
||||
|
||||
if (dbm) {
|
||||
rb_fd_fix_cloexec(gdbm_fdesc(dbm));
|
||||
}
|
||||
|
||||
if (!dbm) {
|
||||
if (mode == -1) return Qnil;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue