From e32ce1868f62070663a13813b132a2bb0cf5f147 Mon Sep 17 00:00:00 2001 From: kosaki Date: Tue, 15 Jan 2013 00:32:23 +0000 Subject: [PATCH] * thread_pthread.c (gvl_init): Reset gvl.wait_yield explicitly when fork()ing. Patch by Apollon Oikonomopoulos. Thanks! [Bug #7693][ruby-core:51424] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 6 ++++++ thread_pthread.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5dc1a58b55..8fc83b20fe 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Jan 15 09:22:47 2013 KOSAKI Motohiro + + * thread_pthread.c (gvl_init): Reset gvl.wait_yield explicitly when + fork()ing. Patch by Apollon Oikonomopoulos. Thanks! + [Bug #7693][ruby-core:51424] + Tue Jan 15 09:27:56 2013 Eric Hodel * doc/syntax/calling_methods.rdoc (Receiver): Added :: as pointed out diff --git a/thread_pthread.c b/thread_pthread.c index d35092a70a..6c48224a87 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -155,6 +155,7 @@ gvl_init(rb_vm_t *vm) vm->gvl.acquired = 0; vm->gvl.waiting = 0; vm->gvl.need_yield = 0; + vm->gvl.wait_yield = 0; } static void