merges r30820 from trunk into ruby_1_9_2.

--
	* process.c (proc_setgroups): add GC guard to prevent intermediate
	  variable from GC.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2011-05-11 21:23:31 +00:00
parent 8c7f9f5cdd
commit fbb6e25a4d
3 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,8 @@
Tue Feb 8 01:00:21 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* process.c (proc_setgroups): add GC guard to prevent intermediate
variable from GC.
Mon Feb 7 22:56:16 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
* lib/benchmark.rb (Benchmark#bmbm): use ensure clause instead of

View file

@ -4464,9 +4464,11 @@ proc_setgroups(VALUE obj, VALUE ary)
}
else {
gr = getgrnam(RSTRING_PTR(tmp));
if (gr == NULL)
if (gr == NULL) {
RB_GC_GUARD(tmp);
rb_raise(rb_eArgError,
"can't find group for %s", RSTRING_PTR(tmp));
}
groups[i] = gr->gr_gid;
}
}

View file

@ -1,5 +1,5 @@
#define RUBY_VERSION "1.9.2"
#define RUBY_PATCHLEVEL 196
#define RUBY_PATCHLEVEL 197
#define RUBY_VERSION_MAJOR 1
#define RUBY_VERSION_MINOR 9
#define RUBY_VERSION_TEENY 1