From 26de612013813687e11793c7d991b03a0982c8e0 Mon Sep 17 00:00:00 2001 From: nagachika Date: Fri, 19 Apr 2013 16:16:55 +0000 Subject: merge revision(s) 40000: [Backport #8097] * thread.c (rb_mutex_synchronize_m): yield no block params. patch by splattael (Peter Suschlik) in [ruby-core:53773] [Bug #8097]. fix GH-266. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'thread.c') diff --git a/thread.c b/thread.c index ffb266c64d..60640d9445 100644 --- a/thread.c +++ b/thread.c @@ -4521,7 +4521,7 @@ rb_mutex_synchronize_m(VALUE self, VALUE args) rb_raise(rb_eThreadError, "must be called with a block"); } - return rb_mutex_synchronize(self, rb_yield, Qnil); + return rb_mutex_synchronize(self, rb_yield, Qundef); } void rb_mutex_allow_trap(VALUE self, int val) -- cgit v1.2.3